Akki-jaiswal / Akki-jaiswal/pong-game
How to Play” button does not open instructions modal Description
Abierto
- Lenguaje dominante
- JavaScript
- Estrellas
- 22
- Forks
- 116
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
The “How to Play” button on the welcome screen does nothing when clicked. The modal (#howToPlayModal) is present in HTML but has no JS wiring to toggle visibility.
teps to Reproduce
Open the game.
Click “How to Play”.
Expected Behavior
The instructions modal opens; clicking “Close”, the backdrop, or pressing Esc closes it.
Actual Behavior
No action occurs.
Proposed Fix
Add event listeners:
howToPlayButton.onclick → remove .hidden from #howToPlayModal
closeHowToPlay.onclick and backdrop click → add .hidden
Esc key closes modal
Optionally pause the game while the modal is open and restore focus on close.
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.