Akki-jaiswal / Akki-jaiswal/pong-game

Feature: Add Visual Game Timer (Elapsed Time Display)

Offen
#108 0 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

Problem

Currently, there is no indicator showing how long a match lasts. Even though the game ends after either player scores 3 points, users have no sense of how quickly they won or lost.

Why It’s Important:

Helps players track their performance (e.g., fastest win/loss time).
Makes the UI feel more complete and polished.
Adds a layer of competitiveness which further increases user engagement.

Suggested Solution:

Add a small elapsed time counter to the top-right or top-center of the screen.
Display format: Elapsed Time: 00:45.
Timer should:
Start when the game begins.
Pause on “Pause”.
Stop when the game ends (i.e., a player reaches 3 points).

I am a contributor for gssoc 25 and would love to work on this issue if it gets approved.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start by locating the JavaScript and HTML handling game start, Pause, scoring to three points, and the on-screen game display. Add an elapsed-time display that follows those lifecycle states and matches the requested 00:45 format; verify it starts, pauses, and stops at the specified moments.

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
50/100

Neue Issues direkt in Ihr Postfach

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