Math Blog
This week, the project review got delayed to Wednesday, and as such, I had more time to refine the save handler into the best state it can be before the review/new demo. The largest improvement added was a way for the player to reset their save data, so that if they wish to restart from the beginning, they can do so with a single button press. To do this, I had to use an understanding of data and statistics to be able to understand and tweak what should be reset, whet
(The save reset button in the main menu)
Along with being able to reset the save data, I also added the precursor to a save versioning system to make sure that if the player’s save data is out of date and incompatible with the current version, the game can reset the data automatically, which is to make sure that whenever the player tries to load a save that dosent exist, it creates one automatically. To do this, I had to use Boolean Algebra (Standard: Algebra and Functions) to check whether the player has a valid save file at their selected filepath, then subsequently create a new save, then call that code any time that a piece of save data is being loaded.
(The boolean function that creates the saves whenever the file is nonexistent)
Leave a comment