Zshandi / SuperSpherebox65

This is a preliminary repository for my groups GGJ 2024 entry.
0 stars 0 forks source link

[Architecture] Make the GameData class use Resource instead of Node #4

Closed Zshandi closed 6 months ago

Zshandi commented 6 months ago

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.

Zshandi commented 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.