If the tab reloads, your game shouldn’t lose progress. This mini-game autosaves state and restores it on load.
Score
0
Level
1
Saved
—
Storage
localStorage
Refresh the page—your score should still be here.
Autosave happens after every change (with a tiny debounce).
What’s different from last game?
You add resilience: progress survives refreshes and accidental tab closes.
Optional challenge variants
Tips
Open DevTools → Console to see helpful logs. Try changing constants at the top of the script.