- Add Deep Sea location to navigation map - Create DeepSeaHuntingScene with dark atmosphere - Add deep ocean transition visuals - Bioluminescent particles and giant shadows Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
35 lines
984 B
JavaScript
35 lines
984 B
JavaScript
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);
|