Python Forum

Full Version: Creating "saves" for the game
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I'm a beginner on pygame, and I was wondering if I can create "saves" for my game, I mean, if I close the game, I can return in the same point when I open it again. Is this possible?
The most simplified version of save is using a text file to store data. You can go all the way up to using MySQL, and anywhere between. A readable and editable save in a text editor could be JSON. I often use this as this is a natural python dictionary, which is perfect for storing data.
I'd try pickle files.