Akki-jaiswal / Akki-jaiswal/pong-game

<BUG>-Pong game not visible

Aperta
#165 2 commenti 0 reazioni 1 assegnatario Rivendicata da @Martina-stack Vedi su GitHub
bug gssoc25 levels
Lingua principale
JavaScript
Stelle
22
Fork
116
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### 🐛 Bug Description

When starting the Pong game, the game begins running in the background (you can hear the ball bouncing), but the actual game canvas is **not visible on screen**. Only the "medium", "mode", and "scores" options are shown.

### 🎮 Steps to Reproduce

1. Open the Pong game project
2. Select a mode or difficulty
3. Click start or wait for game to begin
4. The game starts, but the canvas doesn't appear

### 🖥 Expected Behavior

The game canvas should be clearly visible once the game starts, showing paddles, the ball, and score.

### 🧪 Possible Causes

- Canvas element might be hidden with CSS (display: none or opacity: 0)
- z-index might be too low — behind other elements
- Game rendering logic might be misfiring before canvas is mounted
- JS errors might be stopping canvas rendering

### 💻 Environment

- Device: Laptop
- Browser: Chrome
- OS: Windows 11,

### 🙋 Additional Notes

- This happens every time the game is launched.
- It affects gameplay and makes it unplayable unless fixed.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.