Akki-jaiswal / Akki-jaiswal/pong-game

ENHANCE : Show Score Card on Pause

Offen
#144 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
22
Forks
116
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start by locating the pause control, score display, and game state handling in the JavaScript, HTML, and CSS files. Verify how pausing currently halts gameplay, then make the paused view show both scores and a Resume button; done means the card appears while paused and gameplay resumes correctly.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
css, html, javascript
Bereich
frontend, game-dev
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
48/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.