Skip to content

GameSave

ReadngX edited this page Dec 8, 2016 · 1 revision

The GameSave class allows for saving and loading functionality in the game. The save method statically sets the name of the save file, checks if it exists already, deletes it if it does exist, and then writes the information into the file. The load method checks if the file exists, and if it does, sets the contents of the file to the correct place in the code. Though alterations and additions have been made, the algorithm of the code used is from Almas Baimagambetov, through this video: https://www.youtube.com/watch?v=-xW0pBZqpjU, with some additional help from the stackoverflow.com forums.

Clone this wiki locally