Akki-jaiswal / Akki-jaiswal/pong-game
Add an in game Restart button next to Pause/Resume
Đang mở
- Ngôn ngữ chính
- JavaScript
- Star
- 22
- Fork
- 116
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Currently, the game allows players to pause and resume during gameplay, but there is no option to restart the match without finishing it. The "Play Again" button only appears after the game ends.
If a player makes an early mistake, they have to either keep playing until game over or refresh the page.
**Proposed Solution:**
- Add a Restart button next to the Pause/Resume button in the game UI.
- On click, it should:
- Reset scores to 0–0.
- Reset ball and paddle positions.
- Start the game immediately
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.