/** * 游戏全局配置(通用基础版)。 * * 具体游戏的业务常量(关卡参数、物理系数等)应在各自模块中声明, * 不要污染此文件。 */ export const GameConfig = { // ─── 渲染 ─── antialias: true, shadows: true, toneMapping: "ACESFilmic" as "ACESFilmic" | "Linear" | "Reinhard" | "Cineon", toneMappingExposure: 1.0, maxPixelRatio: 2, // ─── 相机 ─── camera: { fov: 60, near: 0.1, far: 1000, position: { x: 0, y: 3, z: 5 } as { x: number; y: number; z: number }, lookAt: { x: 0, y: 0, z: 0 } as { x: number; y: number; z: number }, }, // ─── 灯光 ─── lighting: { ambientColor: 0x404040, ambientIntensity: 1.0, directionalColor: 0xffffff, directionalIntensity: 1.5, directionalPosition: { x: 5, y: 8, z: 5 } as { x: number; y: number; z: number }, }, // ─── 场景 ─── clearColor: 0x1a1a2e, debugScene: "main" as "preloader" | "main", // ─── 调试 ─── showFps: false, showGrid: true, enableOrbitControls: true, // ─── 音频 ─── settings: { musicOn: true, soundOn: true, }, };