Skip to content

fix: Play Again starts new practice game directly, returns to home for real games#217

Merged
Larkooo merged 1 commit intomainfrom
lattice/1774639042
Mar 27, 2026
Merged

fix: Play Again starts new practice game directly, returns to home for real games#217
Larkooo merged 1 commit intomainfrom
lattice/1774639042

Conversation

@Larkooo
Copy link
Copy Markdown
Contributor

@Larkooo Larkooo commented Mar 27, 2026

Summary

  • Practice games: "Play Again" now creates a new offline game and navigates directly to it, keeping the player in the game loop without going back to the home screen.
  • Real (purchased/staked) games: "Play Again" navigates back to the home screen where the player can purchase a new game.

Previously, both cases navigated to the home screen, which was a friction point for practice players who just wanted to play again immediately.

Changes

  • Added handlePlayAgain callback in client/src/pages/game.tsx that checks isPractice (from usePLDataPoints) to determine behavior
  • Both GameOver render sites (expired + normal game over) now use the new callback

Test plan

  • Start a practice game, die or cash out, press "Play Again" → should start a new practice game directly
  • Start a real (purchased) game, die or cash out, press "Play Again" → should navigate to home screen
  • Verify expired game "Play Again" also respects the same logic

🪟 Made with Lattice

…r real games

Practice games now create a new offline game and navigate straight to it.
Real (purchased/staked) games navigate back to the home screen for repurchase.

Co-Authored-By: Lattice
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
glitchbomb Ready Ready Preview Mar 27, 2026 9:38pm
glitchbomb-storybook Ready Ready Preview Mar 27, 2026 9:38pm

Request Review

@Larkooo Larkooo merged commit 876029b into main Mar 27, 2026
6 checks passed
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