Skip to content

fix: reset game state and timing on restart - #27

Merged
balajmarius merged 2 commits into
masterfrom
fix/restart-state
Sep 18, 2026
Merged

balajmarius merged 2 commits into
masterfrom
fix/restart-state

Conversation

@balajmarius

Copy link
Copy Markdown
Owner

Restarting now clears the player position and firing animation along with score and lanes, and resets the shared clock even when the game is already running. A restart just before a tick therefore waits a full interval before advancing the new round.

Validation: npm run check passed. Isolated timing checks covered active-game restart, restart after death, frame cleanup, and the initial 200ms/500ms tick intervals.

@balajmarius
balajmarius merged commit de89456 into master Sep 18, 2026
2 checks passed
@balajmarius
balajmarius deleted the fix/restart-state branch September 18, 2026 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant