import Phaser from "phaser"; import BootScene from "./scenes/BootScene"; import PlayScene from "./scenes/PlayScene"; //import { * } from "./constant"; function launch(containerId) { const container = document.getElementById(containerId); const width = container.clientWidth; const height = container.clientHeight; return new Phaser.Game({ type: Phaser.WEBGL, width, height, parent: containerId, backgroundColor: 0xbbada0, pixelArt: true, physics: { default: "arcade", arcade: { //gravity: { y: 300 }, debug: true, }, }, scene: [BootScene, PlayScene], }); } export default launch; export { launch };