Akki-jaiswal / Akki-jaiswal/pong-game

Bonus Feature: Add High Score Tracking

Aberta
#145 2 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
JavaScript
Estrelas
22
Forks
116
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.