Commit Graph

2 Commits

Author SHA1 Message Date
Brian Fertig 4d07fcb1c4 feat: implement responsive canvas scaling with Phaser.Scale.FIT and DOM overlay sync
- Replace manual CSS scaling in index.html with Phaser's built-in FIT mode,
  ensuring canvas always fits viewport while maintaining 1920×1080 aspect ratio.
- Add scale configuration to game config (Phaser.Scale.FIT, CENTER_BOTH).
- Refactor all DOM UI overlays to use fixed 1920×1080 dimensions with
  transform-origin: top-left and dynamic scaling based on canvas rect.
- Implement _syncOverlayToCanvas() in MainMenuScene, NewPuzzleScene, and
  PuzzleScene to keep DOM overlays perfectly aligned during resize events.
- Fix UI element positions in MainMenuScene and NewPuzzleScene to match new
  coordinate system (e.g., title from -30→45, buttons repositioned).
- Update Phaser CDN version from 3.9.0 to 3.90.0 (likely typo fix).
- Fix particle emitter creation syntax and stop() instead of on=false.
- Clean up resize listeners on scene shutdown to prevent memory leaks.
2026-04-05 23:17:14 -06:00
Brian Fertig 9460041867 first commit 2026-04-04 18:51:09 -06:00