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>
45 lines
1.4 KiB
Markdown
45 lines
1.4 KiB
Markdown
# NOMADRO 3D · Cocos Creator 3.8.x(并行方案 B)
|
||
|
||
数字游民人生模拟 · 微信小游戏。规范见 [`AGENTS.md`](./AGENTS.md)。
|
||
|
||
**Unity 方案(A)继续保留**:`apps/minigame-unity` → `apps/minigame`。本目录互不覆盖。
|
||
|
||
| | |
|
||
|---|---|
|
||
| 引擎 | Cocos Creator **3.8.6**(禁止擅自升级) |
|
||
| 语言 | TypeScript |
|
||
| AppID | `wx2900cac0858ca7dc` |
|
||
| 开源调研 | [`docs/OSS_RESEARCH.md`](./docs/OSS_RESEARCH.md) |
|
||
|
||
## 架构
|
||
|
||
```
|
||
assets/scripts/
|
||
vendor/ mitt · nipple-math(>1k stars 核实复用)
|
||
core/ 事件总线 · 类型
|
||
sim/ 时间/经济/精力/工作/存档(禁止 import 'cc')
|
||
data/ 离线 catalog 种子
|
||
player/ P0 电机 · 第三人称相机
|
||
ui/ 虚拟摇杆 · HUD
|
||
scene/ 程序化城市 · 交互区
|
||
bootstrap/ AutoSceneSetup · GameRoot
|
||
assets/data/ city-prototype.json · economy.json
|
||
```
|
||
|
||
## 本地
|
||
|
||
1. 本机已备 Creator:**`tools/CocosCreator-3.8.6`**(见 `tools/README-COCOS.md`)
|
||
2. 打开本工程 → 打开 **`assets/scenes/Main.scene`** → 预览 ▶
|
||
3. 构建 **微信小游戏** → `build/wechatgame`(**禁止**覆盖 `apps/minigame`)
|
||
4. 细节:[`docs/SCENE_SETUP.md`](./docs/SCENE_SETUP.md)
|
||
|
||
```bash
|
||
node tests/sim-world.test.mjs
|
||
# 或
|
||
pnpm --dir apps/minigame-cocos test:sim
|
||
```
|
||
|
||
## 阶段
|
||
|
||
P0~P3 代码已进仓。P4+ 街道扩展与 Kenney CC0 GLB 见 `docs/PHASE_LOG.md`。
|