Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | putskan |
Hey guys,
I’m writing a mini multiplayer game, in which a player create a room and others join and play.
Once the game ends, the room closes and the players’ data are being discarded.
Therefore, I need to store room data, which contains the players’ details (nickname, player_id, player_team).
I wonder which is a better way of storing the data:
- Use a Player.tscn node under Room node.
- Save the players’ data as a dictionary in Room.gd.
Which would you go with and why?
Thanks in advance!
doesn’t really matter, the simplest/fastest done possible, just refactor as you see fit during your dev
Omicron | 2020-12-24 17:50
Thanks! went with dicts.
putskan | 2021-01-03 20:19