Akki-jaiswal / Akki-jaiswal/pong-game

Bonus Feature: Add High Score Tracking

Ouverte
#145 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
22
Forks
116
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Description:
The game currently tracks the score only for the current session. There’s no record of the highest score achieved by the user. Adding a high score feature would motivate players to improve their gameplay.

Suggested Implementation:

-Create a highScore state that stores the maximum score.
-Update it when ravneetScore exceeds the current high score.
-Save it to localStorage so it persists across sessions:

UI Display Ideas:

-Show High Score next to the current score in the top panel.
-Optionally add a 🎉 animation or badge when a new high score is reached.

Benefit:
This simple addition adds progression, motivation, and fun to the game.

Image

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.