import { Orientation } from "./enums/Orientation"; import { initApp, game, sceneManager } from "./init"; // 初始化应用 setTimeout(async () => { await initApp(); game.setOrientation(Orientation.Landscape); // 入口场景会自动由 SceneManager 发现和初始化 // 如果你的入口场景叫 "init",它会被自动初始化 }, 200); // 导出供全局调试 if (import.meta.env.DEV) { (window as any).game = game; (window as any).sceneManager = sceneManager; }