import Phaser from 'phaser'; import { BootScene } from './scenes/shared/BootScene'; import { ParadeScene } from './scenes/shared/ParadeScene'; import { NightScene } from './scenes/door/NightScene'; import { DoorScene } from './scenes/door/DoorScene'; import { NightSummaryScene } from './scenes/door/NightSummaryScene'; // TODO(integration): Phase 2 owns scene routing (menu -> roster -> night). For // v0.1 the game IS the Door night, so it boots straight into it. Boot/Parade // stay registered so the Phase-0 demo survives: // game.scene.start('Parade') from the console. const game = new Phaser.Game({ type: Phaser.AUTO, width: 640, height: 360, pixelArt: true, backgroundColor: '#0a0a12', scale: { mode: Phaser.Scale.FIT, autoCenter: Phaser.Scale.CENTER_BOTH, zoom: Phaser.Scale.MAX_ZOOM, }, scene: [NightScene, DoorScene, NightSummaryScene, BootScene, ParadeScene], }); // debug handle (harmless in prod; used by dev tooling) (window as unknown as { game: Phaser.Game }).game = game;