Saving game stats and other things

Saving game stats and other things
0.0 0



in our game, we need to save some data (the score obtained in a level, for example) in a persistent way (that is, the
data should be saved on the user phone, so that it will be there when the game will be played again).
It seems to me that CCUserDefault could do the job.
How you guys are handling this situation?
Our game is currently developed for iphone/ipad, but soon we want to port it to android, so a portable
unique way of saving game data would be really useful.
Thank you!


The CCUserDefault is sufficient for what you want to do.
I use it to save high scores in my game, the game have ios, android and blackberry versions, it work on all of them, take a look in the tests folder, it’s very easy to use.