//// import Phaser, { Game } from 'phaser' import BootScene from './scenes/bootScene.js' import GameScene from './scenes/gameScene.js' import FullScreenEvent from './components/fullscreenEvent.js' const config = { type: Phaser.AUTO, scale: { mode: Phaser.Scale.FIT, autoCenter: Phaser.Scale.CENTER_BOTH, width: 896, height: 504 }, scene: [BootScene, GameScene] } window.addEventListener('load', () => { const game = new Game(config) FullScreenEvent(() => resize(game)) })