Working on my current project, I’m getting to a point where I want to save game data. Seems to me there’s two areas here:
-
Data describing long term stuff. Like number of enemies defeated, total score, time played, worlds visited etc.
-
Data describing the immediate situation, for example rebuilding all of the sprites on the screen.
Seems there are two methods for saving data writing files with io or using a database with sqlite3.
I’d like to hear about how the rest of you handle all of this? I’m trying to decide on a strategy for myself. Writing a file seems easy enough. How much data, and when to save the data becomes a question.