marcmll / next-snake

Minimal Snake browser game, built using Next.js
https://next-snake.vercel.app
60 stars 14 forks source link

Bugfix: "New Highscore" Message #1

Closed marcmll closed 4 years ago

marcmll commented 4 years ago

Bug Description:

The "new highscore" message occurs on every "game over" screen, once the current highscore is broken for the first time

Bug Preview:

Screenshot 2020-07-29 at 14 04 20

Fix:

To fix this, the newHighscore state is set to false in the startGame function.

vercel[bot] commented 4 years ago

This pull request is being automatically deployed with Vercel (learn more). To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/marcmll/next-snake/44k0lsyfr ✅ Preview: https://next-snake-git-bugfix-highscore-message.marcmll.vercel.app