Saving and Loading


Saving and Loading

In this build preview in the video, I've added the saving and loading feature as gone over in class! When a level is started fresh, the carrots are not collected and the door is unopened, the stamina meter untouched by mortal hands. When the checkpoint is reached, any collected coins, doors opened (just the one, for now) and the stamina used by mortal legs, we save all of these in the player's file.

When the player reaches Level 2, we see that the collected items there have been saved as well. Then, when we go back to level 1, we are able to reset or delete all of the player data accumulated, including doors, carrots, and remaining stamina.

Bon voyage! Saving and loading, complete.

Get Game Design 3 Project