-
Notifications
You must be signed in to change notification settings - Fork 2
Serialising Data
Jason edited this page Mar 4, 2025
·
1 revision
The page contains information about serialising data in the game.
To provide properly working saving & loading values after launching & exiting the game, the game needed a separate manager for serialising & deserialising some data. It creates JSON files for saving values about the game and the players.
The following list shows what data required serialisation:
- Game data (high score for displaying it in the main menu scene & stage number for setting the same value to the counter in the stage selection scene),
- Player data (the player's score for displaying it in the main menu scene).
Serialising (saving) values occur in the following situations:
- The game is over (caused by destroyed nuke or losing all lives by all the players),
- Selecting stage to start the game session from (only the game data).
Deserialising (loading) values occurs only after loading the main menu scene.