Files
cocos/AGENTS.md
刘宇飞 cba5105908 Initial Cocos Creator port of main-site Unity WebGL game.
Includes core gameplay, 600 exported levels, visual assets, web bridge, and bootstrap scene.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-22 14:57:46 +08:00

19 lines
670 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Cocos 主站 tfrh001 — Agent 指南
- 引擎:**Cocos Creator 3.8.8**
- 源 Unity 项目:`/Users/liuyufei/tfrh/主站文件/主站`
- 设计对齐 Unity `Platformer.*` 命名与 JS API
## 开发约束
1. 关卡只改 `assets/scripts/level/LevelRegistry.ts` 或新增 JSON勿硬编码在 GameManager。
2. 保持 `SendMessage` 对象名GameController、Player、Vehicle、UIMain。
3. 移动规则只改 `assets/scripts/core/Define.ts`
4. 对外回调用 `JsBridge.call(name, jsonString)`
## 关键文件
- `AppBootstrap.ts` — 场景自动搭建
- `GameController.ts` — JS SendMessage 入口
- `gameplay/Movement.ts` — 移动队列与规则