I’m making a small python game with pygame. I’d like to be able to have multiple profiles with different stats, upgrades, etc. My biggest problem is storing this information persistently. I’ve already thought about MySql but I don’t know how I could connect to it and I would prefer some way to be able to distribute it without requiring a database. Any suggestions? Many thanks.
Share
You can use the sqlite3 module which comes with python or you could use the shelve module
You can use the shelve module as an object database and just save the user classes directly.
The sqlite3 module will let you store a relational database in a file. It’s used by firefox for example.