Akki-jaiswal / Akki-jaiswal/pong-game

Add an in game Restart button next to Pause/Resume

Đang mở
#180 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
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

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.