Closed Zshandi closed 6 months ago
In the final implementation, instead of an array in the Main class, I decided to make the Main simply find the "game_data.tres" files within the game folders. This way, when a new game is added, it is completely independent, not requiring editing any files outside of the game folder. This will allow for easier time with using branching and merging, as 2 people can create 2 different games, and/or work on the main scene independently, without ending up with merge conflicts.
For a lower footprint, GameData should extend Resource instead of Node. Then the Main class can simply have an exported array of GameData.
Care must be taken to ensure the current values are copied from the current GameData to the new Resources.