You are browsing as a guest. Sign up (or log in) to start making projects!

1h 13m 36s logged

๐Ÿ 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

0
4

Comments 0

No comments yet. Be the first!