Till now I've been working with global variables to store game progress (points, lives, currentLevel, etc.), so if the game is restarted all data is gone.
Now it's time to save game progress! I've been reading the documentation and forum, but I'm finding that it's more difficult than I first thought! I wonder if there are any tutorials?
Can I save all game progress in a .txt file? To have a file in the document directory, "|D|", should I first create it in the resource directory, as explained here
http://docs.giderosmobile.com/file_system.html ?
And then, how to actually update data on a .txt file? should I update my .txt in the document directory each time a player makes new points?
Comments
dataSaver is your friend here:
https://github.com/ar2rsawseen/dataSaver
usage: http://appcodingeasy.com/Gideros-Mobile/Save-and-load-data-module-for-Gideros-Mobile
Or you can take a look at settings class of GameTemplate:
https://github.com/ar2rsawseen/GameTemplate