/** * 游戏全局配置(通用基础版)。 * * 具体游戏的业务常量(棋盘间距、箭头尺寸等)应在各自 skill 中声明, * 不要污染此文件。 */ export const GameConfig = { // ─── 设计稿基准 ─── baseWidth: 750, baseHeight: 1334, // ─── UI 缩放范围(供 computeUiLayout 使用) ─── minScale: 0.7, maxScale: 1.4, // ─── 安全区偏移(刘海屏等,单位 dp;启用后 UiLayout 自动扣减) ─── safeAreaTop: 0, safeAreaBottom: 0, // ─── 调试 ─── debugScene: "game" as "boot" | "preloader" | "game", showFps: false, // ─── 音频默认状态 ─── settings: { musicOn: true, soundOn: true, }, };