Python Forum
[PyGame] Creating "saves" for the game
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] Creating "saves" for the game
#1
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?
Reply
#2
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.
Recommended Tutorials:
Reply
#3
I'd try pickle files.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Creating a “Player” class, and then importing it into game onizuka 4 2,976 Sep-01-2020, 06:06 PM
Last Post: onizuka
  Creating Snake game in Turtle Shadower 1 8,617 Feb-11-2019, 07:00 PM
Last Post: woooee

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020