import { Boot } from './scenes/Boot.js'; import { Preloader } from './scenes/Preloader.js'; import { Game } from './scenes/Game.js'; import { GameOver } from './scenes/GameOver.js'; // Find out more information about the Game Config at: // https://newdocs.phaser.io/docs/3.70.0/Phaser.Types.Core.GameConfig const config = { type: Phaser.AUTO, // REMEMBER to keep consistent with tilemap.json width: (20 + 10) * 32, height: (20 + 10) * 32, parent: 'game-container', backgroundColor: '#2d3436', scale: { mode: Phaser.Scale.FIT, autoCenter: Phaser.Scale.CENTER_BOTH, }, physics: { default: 'arcade', arcade: { debug: false, gravity: { y: 0 } } }, scene: [ Boot, Preloader, Game, GameOver ] }; new Phaser.Game(config);