Files
gijs_pong/index.html
Dabit 77071a52ff feat(02-02): implement state machine, scoring, match-end, mode/difficulty selection
- Added mode/difficulty/restart key handlers to Input._handleKeyDown
- Rewrote GameLoop.main() with full state machine (modeSelect, diffSelect, playing, scored, gameover)
- Added score detection in GameLoop (ball exits left/right edge)
- Added 1s pause after score then auto-serve
- Added match-end check (first to 7 wins) with winner overlay
- Added center divider line and real-time score display
- Renders both paddles during gameplay
- Removed Physics out-of-bounds auto-serve (GameLoop now owns scoring)
- Removed Phase 1 debug speed display
- Added pauseTime field to GameLoop
2026-03-10 21:10:08 +01:00

20 KiB