Save state of a game

Non-platform specific questions.

Save state of a game

Postby mcavalcanti » Mon Feb 27, 2012 8:49 pm

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. :/
Mario Cavalcanti
----------------------------
Code is poetry.
User avatar
mcavalcanti
 
Posts: 54
Joined: Fri Jul 22, 2011 1:09 am
Location: Rio de Janeiro, Brazil
Score: 1 Give a positive score

Re: Save state of a game

Postby skydereign » Tue Feb 28, 2012 3:57 am

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.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest