Zshandi / SuperSpherebox65

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

Allow saving & loading of data from the games (such as high score) #5

Closed Zshandi closed 5 months ago

Zshandi commented 6 months ago

The save data already has some properties in the GameInstanceData class, but this data is not currently being persisted. To achieve this, it could be put into a Dictionary (possible one big Dictionary in the Main class containing all data for all games), then use the FileAccess.store_var() and FileAccess.get_var() methods.

This saving and loading will need to be called back to from the game when it updates the relevant data or is closed out of.

To test this we will need at least one game that has data such as high score, to verify the saving and loading.