-
Notifications
You must be signed in to change notification settings - Fork 1
Game Data
Jason edited this page Aug 18, 2025
·
4 revisions
The page contains information about data about the game session and data stored between game sessions.
In order to make some important data transferrable between scenes, the game needed a scriptable object for storing data to control entire flow of the game session and display score information.
The following table shows what data are stored (some values are serialised to store them after exiting the application, see the "Serialising Data" page for more information):
| Data type | Description | Is it saveable? |
|---|---|---|
| High score | Current highest number of points gained in previous session. By default, it is equal to 20.000. | ✅ |
| Stage number | Current stage number in the game session. | ✅ |
| Entered Stage Selection | A boolean value checking if the player was transferred to the stage selection. This is to avoid moving the main menu UI panel once again when the player returns to the main menu scene from the stage selection scene. | ❌ |
| Selected Two Player Mode | A boolean value checking if the player selected the two player mode. | ❌ |
| Game Is Over | A boolean value checking if the game (as a current session) is over. | ❌ |
| Beaten High Score | A boolean value checking if the current high score was beaten. This is for awarding the player with an additional life for beating current high score. | ❌ |
| Previous High Score | Highest number of points taken as a snapshot while starting another game session. This is to display the previous value in the score scene. | ❌ |
| Stages Data | An array of instances of the serialisable class implemented for storing data of stages. | ❌ |