- 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. |
||
|---|---|---|
| .. | ||
| net | ||
| puzzle | ||
| scenes | ||
| state | ||
| main.js | ||