★ TouchArcade needs your help. Click here to support us on Patreon.

Fast way to save game state for restore later on?

10-17-2010, 04:04 AM
#1
Joined: Jan 2010
Posts: 1
Fast way to save game state for restore later on?

Hi,

Just wanted to ask fellow game developers what is their preferred way of saving game state for a later restore?

Are there any tips and tricks for fast save ?

Thanks,
Andreas
10-17-2010, 04:15 AM
#2
Joined: Mar 2009
Posts: 659
probably the easiest way is to use NSUserDefaults

I use that to save things like highscores and enough data to be able to resume from where the player left off.



When I'm saving entire data structures like for the level editor I use NSMutablearray writetofile