feat: Add 'Play Again' button to game-over screen - #50
Merged
venice-dev[bot] merged 1 commit intoMar 28, 2026
Merged
Conversation
- Add Play Again button visible in both qualifying and non-qualifying scenarios - For non-qualifying scores: button appears alongside auto-restart timer, clicking cancels timer and restarts immediately - For qualifying scores: button appears alongside name entry so players can skip submission and restart - Styled consistently with existing game-over overlay UI - Existing auto-restart behavior preserved if player doesn't click button Co-Authored-By: bot_apk <apk@cognition.ai>
saucegodbased
force-pushed
the
venice-task-78c20e15
branch
from
March 28, 2026 04:29
41c7b08 to
50cba75
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add an explicit 'Play Again' button to the game-over overlay so players can immediately restart without waiting.
Changes
#play-again-btn) to the game-over overlay in bothpublic/index.htmland rootindex.htmlexitGameOver()is called on click to properly reset and restart the gameFiles Changed
public/index.html- Added Play Again button elementpublic/css/styles.css- Added button stylespublic/js/main.js- Wired up button logic in enterGameOver/exitGameOverindex.html- Synced Play Again button element and stylesjs/main.js- Synced button logic