Fix scaling and controls for desktop displays

- Remove max scale bounds to support unlimited display sizes (4K, 8K, ultrawide)
- Remove duplicate width/height from scale config to fix desktop scaling
- Fix HuntingScene to default to mouse mode on all platforms (was incorrectly starting in keyboard mode on desktop)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Thomas Richter
2025-12-18 05:28:58 +01:00
parent 8de3f594f9
commit 89a47cd721
2 changed files with 3 additions and 10 deletions

View File

@@ -22,18 +22,11 @@ const config = {
scale: {
mode: Phaser.Scale.FIT,
autoCenter: Phaser.Scale.CENTER_BOTH,
width: 800,
height: 600,
min: {
width: 320,
height: 240
},
max: {
width: 1920,
height: 1080
},
fullscreenTarget: 'game-container',
expandParent: false
fullscreenTarget: 'game-container'
}
};

View File

@@ -22,8 +22,8 @@ export default class HuntingScene extends Phaser.Scene {
// Detect mobile device
this.isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
// Default to touch on mobile, keyboard on desktop
this.useKeyboard = !this.isMobile;
// Default to mouse/touch mode on all platforms
this.useKeyboard = false;
// Ocean background
this.add.rectangle(400, 300, 800, 600, 0x1e5a8e);