Save & Respawn System (Might Change base on Charlie)
The Save System ensures that the player saves progress before key events, such as an enemy encounter that leads to death. Upon dying, the player respawns at the beginning of the scene where the save occurred. This system maintains immersion while preventing excessive loss of progress.
The game automatically saves when the player enters a predefined checkpoint. At the start of each loop saves the game
Saves include player position, current level, and relevant progress data.
When the player dies, they are reloaded at the last checkpoint.
Uses JSON-based storage for lightweight and efficient data handling.
A checkpoint system that activates before major encounters.
If the player dies, they return to the last checkpoint.
All unlocked elements (e.g., doors, key items) remain active post-respawn.
Stores:
Player position (X, Y, Z)
Current level
UI Notification: Displays Saving Icon.
Visual: Scene fade-out and fade-in transition with a Death Screen.