import { EDirection } from "./enmu"; import { gameManager, initGame, stageManager, windows } from "./Game"; import { addSound } from "./Game/Sound"; console.log(); gameManager.loader .add("my-sound", "/bg.mp3", (e) => addSound(e)) .add("bg", "/bg.png") .load(); gameManager.loader.onProgress.add((loader) => { console.log(loader.progress); }); gameManager.loader.onComplete.once((loader) => { console.log(loader.resources); initGame(); gameManager.setDirection(EDirection.Portrait); stageManager.initStage("loading"); });