Simple Save/Load Game module

Monkey Forums/Monkey Code/Simple Save/Load Game module

AdamRedwoods(Posted 2011) [#1]
Very simple and requires work on your part, but is set up for an arbitrary number of save game slots. Saves within the SaveState setup in monkey. For mobile, it saves as XML files in memory, so you should have quite a bit of room for data.

Game data is SEQUENTIAL: FIFO (first in, first out) order.

The save data is in arrays, so remember the brackets.

The CPlayer class is my own arbitrary class, showing that you must pass a class (or whatever) to access and set your game variables appropriately.