Akki-jaiswal / Akki-jaiswal/pong-game
Store Scores in LocalStorage
- Lingua principale
- JavaScript
- Stelle
- 22
- Fork
- 116
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
### 📌 Title
**Store Player Score in LocalStorage**
---
### 📝 Description
Right now, when the page reloads, all scores vanish.
By saving the player's score using the browser's **localStorage**, we can make sure the game remembers their **highest score**, even after a refresh or closing the browser.
This will bring more fun and competition — because now the game says: “Hey champ, beat your own best!”
---
### ✅ Acceptance Criteria
- When the game ends, save the player’s score in localStorage.
- Only update the stored score if the new score is higher than the previous best.
---
### 💡 Why This is Needed
Players like to see progress. If we save the high score, they’ll come back again and again to beat it 🔁💪
It’s a small change, but it adds a big layer of excitement and satisfaction to the gameplay!
Let’s level up the experience 🎮✨
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.