nomadro/apps/minigame-cocos/docs/PHASE_LOG.md
Eric 58a845db32 Add WeChat minigame triple-engine scaffold with Godot Chiang Mai plaza SoT.
Unity and Cocos stay as parallel schemes; apps/minigame ships the Godot 4.7 WeChat pack for DevTools.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-06 20:17:14 +08:00

53 lines
2.0 KiB
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.

# 阶段交付日志
## 2026-11-06 · 并行方案立项 + P0~P3 代码落地
### 修改文件清单
- `AGENTS.md` — 用户总规范落地
- `docs/OSS_RESEARCH.md` — Stars 实时核实
- `docs/DUAL_ENGINE.md` — Unity / Cocos 并行关系
- `docs/PHASE_LOG.md` — 本文件
- `README.md` / `package.json` / `tsconfig.json`
- `assets/data/city-prototype.json` · `economy.json`
- `assets/scripts/**` — core / sim / player / ui / scene / bootstrap / vendor
- `assets/scripts/bootstrap/AutoSceneSetup.ts` — 空场景一键搭景
- `docs/SCENE_SETUP.md`
- `tests/sim-world.test.mjs`
- 移除旧单体脚本:`assets/scripts/game/*`(由模块化目录取代)
- 同步说明:`apps/minigame-unity/README.md`、`apps/minigame/README.md`(双引擎并行,不覆盖)
**未改玩法导出**:Unity 工程与 `apps/minigame` 运行包保持可玩,Cocos 不盖写。
### 使用的开源项目
见 `OSS_RESEARCH.md`:cocos-engine · mitt · nipplejs · Kenney Starter-Kit-City-Builder。
### 复用的具体代码
- mitt:`vendor/mitt.ts` 完整 API
- nipplejs:`distance` / `angle` / `clamp` / force-threshold → `vendor/nipple-math.ts`
- Kenney:structures + cash 存档字段形态 → `SaveBlob` / `city-prototype.json`
### 新增代码
模块化架构 + 离线城市原型 JSON + 纯 TS 模拟(时间/经济/精力/工作/存档)+ P0 电机/相机/摇杆 + 程序化 stylized 场景。
### 测试结果
```
node tests/sim-world.test.mjs → OK
```
### 性能情况
尚未上微信真机;当前为程序化盒体原型,Draw Call 预期可控。GLB / 烘焙光照待 P4+。
### 未解决问题
1. Cocos Creator 3.8.6 已解压并可打开工程(窗口标题可见);需在编辑器内打开 `assets/scenes/Main.scene` 点预览 / 构建微信到 `build/wechatgame`。
2. Cocos 专用第三人称示例 Stars <1000,未拷贝官方模板。
3. 美术为增强后的程序化 stylized(窗门/家具/NPC);Kenney CC0 GLB 待换。
4. 音频系统未做。
5. 桌面 Computer Use 通道不可用,未能自动点预览按钮。