Save state of a game
Posted:
Mon Feb 27, 2012 8:49 pm
by mcavalcanti
Hello. I have a silly doubt. How can I save the state of the game, preserving the position of every enemy and object (like bullets, for example) in the screen to continue playing later from the exact point I saved? For things like scores and lives, we have saveVars and loadVars functions. But I would like to save the state of the game. :/
Re: Save state of a game
Posted:
Tue Feb 28, 2012 3:57 am
by skydereign
You would have to do it in the same way (which would be ridiculous given the complexity of a game). You could setup a rather complex save system that saves everything about every actor though. It'd actually be a pretty interesting thing to implement, but I recommend figuring out the individual things you want to save instead of doing everything. It's cleaner that way.