Akki-jaiswal / Akki-jaiswal/pong-game

How to Play” button does not open instructions modal Description

Abierto
#206 0 comentarios 0 reacciones 0 asignados Ver en GitHub
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

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.