import Phaser from 'phaser'; import IntroScene from './scenes/IntroScene.js'; import ShipDeckScene from './scenes/ShipDeckScene.js'; import MapScene from './scenes/MapScene.js'; import TransitionScene from './scenes/TransitionScene.js'; import HuntingScene from './scenes/HuntingScene.js'; import DeepSeaHuntingScene from './scenes/DeepSeaHuntingScene.js'; const config = { type: Phaser.AUTO, width: 800, height: 600, parent: 'game-container', backgroundColor: '#2d5f8e', scene: [IntroScene, ShipDeckScene, MapScene, TransitionScene, HuntingScene, DeepSeaHuntingScene], physics: { default: 'arcade', arcade: { gravity: { y: 0 }, debug: false } }, scale: { mode: Phaser.Scale.FIT, autoCenter: Phaser.Scale.CENTER_BOTH, min: { width: 320, height: 240 }, fullscreenTarget: 'game-container' } }; const game = new Phaser.Game(config);