Akki-jaiswal / Akki-jaiswal/pong-game

ENHANCE : Show Score Card on Pause

Aperta
#144 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
22
Fork
116
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Description:
Currently, when the user clicks on the "Pause" button in the Pong game, the gameplay halts but there’s no visual indication or score update shown. This can make the pause state feel abrupt or confusing.

Proposed Solution:
Display a centered card when the game is paused, which includes:

-Current score of both players (ravneet vs AI)
-A "Resume" button
-Optional: Backdrop blur or dark overlay for focus

Benefits:
-Improves clarity and user experience during pause
-Gives users a quick look at their progress
-Adds a professional and polished UI touch

Suggested Implementation:
-Use a useState hook to toggle pause state
-Conditionally render a

in the center showing the score
-Add CSS for modal-style card with slight animation or shadow

Image

i would like to solve this issue , you can assigned this to me under GSSOC'25.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.