๐ Devlog #4 โ Save System + Progress Update
This update added a full save system to my Snake game, so now the game remembers your progress even after you close it.
๐พ What I added
.A save system using JSON files
Automatic saving during gameplay (mid-game autosave)
Saving when:
.You eat food
.You hit game over
.You quit the game
.A working high score system
.Game state saving (snake position, direction, and food position)
๐ What changed
Now the game doesnโt reset every time you open it. Instead, it loads your last session from a file called save.json.
That means:
.You can close the game anytime
.Open it again and continue where you left off
.Your high score stays saved permanently
โ๏ธ How it works
The game stores all important data:
.Score
.High score
.Snake body positions
.Direction
.Food location
This data is written into a file using Pythonโs json module and reloaded when the game starts.
๐ฎ Result
The game now feels much more like a real game instead of a restart-every-time project. Progress is saved automatically and reliably.
๐ง Next steps
In the next update, I want to improve the game by adding:
.A main menu (Start / Continue / Quit)
.Better visuals or animations
.Possibly sound effects
.Cleaner restart system
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.