0

Checkpoints python

I'm creating a game in python and i need checkpoints to save what phase you're, your inventory, hp and so on. How do I do that?

4th Sep 2018, 8:47 PM
Some0ne In Somewher3
Some0ne In Somewher3 - avatar
3 Answers
+ 6
Save to file?
4th Sep 2018, 10:00 PM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
0
Thank you :)
4th Sep 2018, 11:39 PM
Some0ne In Somewher3
Some0ne In Somewher3 - avatar
0
Saving to a file or database will do the trick. The file can be a cab, txt, etc or the database can be an sql, no-sql, etc. Keep in mind that constant reads and writes to a backend, whether db or file, can become cumbersome. Checkpoint saves and manual saves are ideal, but continuoisly looping through a time based saving solution is resource intensive. Best of luck.
4th Sep 2018, 11:39 PM
Steven M
Steven M - avatar