feat: 支持新地图

This commit is contained in:
richarjiang
2025-09-23 09:56:24 +08:00
parent 20f5de3533
commit 9972db71be
8 changed files with 614 additions and 63 deletions

View File

@@ -20,7 +20,7 @@ export class CameraFollow extends Component {
mapWidth: number = 1080; // 地图宽度
@property
mapHeight: number = 2560; // 地图高度
mapHeight: number = 1920; // 地图高度
private camera: Camera | null = null;
@@ -28,7 +28,7 @@ export class CameraFollow extends Component {
// 获取相机组件
this.camera = this.getComponent(Camera);
this.camera.orthoHeight = 500
this.camera.orthoHeight = 680
if (!this.camera) {
console.error('CameraFollow: 未找到Camera组件');
}