Akki-jaiswal / Akki-jaiswal/pong-game

<BUG>-Pong game not visible

Offen
#165 2 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @Martina-stack Auf GitHub ansehen
bug gssoc25 levels
Vorherrschende Sprache
JavaScript
Sterne
22
Forks
116
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### 🐛 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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.