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>
This commit is contained in:
2026-05-22 14:57:46 +08:00
commit cba5105908
88 changed files with 13798 additions and 0 deletions

18
AGENTS.md Normal file
View File

@@ -0,0 +1,18 @@
# 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` — 移动队列与规则