import Phaser from 'phaser'; import { EditorScene } from './EditorScene.js'; // The editor fills the window and redraws a top-down grid. RESIZE scale mode // lets it follow the browser size; the toolbar is plain DOM in editor.html. const config = { type: Phaser.AUTO, parent: 'editor', backgroundColor: '#1b1b1f', scale: { mode: Phaser.Scale.RESIZE, width: window.innerWidth, height: window.innerHeight, }, scene: [EditorScene], }; new Phaser.Game(config);