Includes core gameplay, 600 exported levels, visual assets, web bridge, and bootstrap scene. Co-authored-by: Cursor <cursoragent@cursor.com>
670 B
670 B
Cocos 主站 tfrh001 — Agent 指南
- 引擎:Cocos Creator 3.8.8
- 源 Unity 项目:
/Users/liuyufei/tfrh/主站文件/主站 - 设计对齐 Unity
Platformer.*命名与 JS API
开发约束
- 关卡只改
assets/scripts/level/LevelRegistry.ts或新增 JSON,勿硬编码在 GameManager。 - 保持
SendMessage对象名:GameController、Player、Vehicle、UIMain。 - 移动规则只改
assets/scripts/core/Define.ts。 - 对外回调用
JsBridge.call(name, jsonString)。
关键文件
AppBootstrap.ts— 场景自动搭建GameController.ts— JS SendMessage 入口gameplay/Movement.ts— 移动队列与规则