Akki-jaiswal / Akki-jaiswal/pong-game

Store Scores in LocalStorage

オープン
#28 コメント 5 件 リアクション 0 件 担当者 1 名 @Manojkumar2806 が担当を希望しています GitHub で見る
difficulty enhancement good first issue gssoc25
主要言語
JavaScript
スター
22
フォーク
116
PR マージ指標
30日以内にマージされた PR はありません

説明

### 📌 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 🎮✨

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。