import { Game, AUTO, Scale } from 'phaser'; import { BootScene } from './scenes/BootScene.js'; import { MenuScene } from './scenes/MenuScene.js'; import { GameScene } from './scenes/GameScene.js'; import { GameOverScene } from './scenes/GameOverScene.js'; import { GAME_WIDTH, GAME_HEIGHT, GRAVITY } from './config/game.config.js'; const config = { type: AUTO, parent: 'game-container', width: GAME_WIDTH, height: GAME_HEIGHT, backgroundColor: '#0d001a', scale: { mode: Scale.FIT, autoCenter: Scale.CENTER_BOTH, }, physics: { default: 'arcade', arcade: { gravity: { y: GRAVITY }, debug: false, }, }, scene: [BootScene, MenuScene, GameScene, GameOverScene], pixelArt: false, antialias: true, }; window.game = new Game(config);