nomadro/apps/minigame-cocos/docs/OSS_RESEARCH.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

46 lines
2.8 KiB
Markdown
Raw 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 · 来源:GitHub API `stargazers_count` / `pushed_at` / `license.spdx_id`。
规则:推荐列表 **仅含 Stars > 1000**;不足者单独列入「不合格,不得复用为依赖」。
## 合格项目(可复用)
| 仓库 | Stars | 更新 | License | 用途 | 本项目落地 |
|---|---:|---|---|---|---|
| [cocos/cocos-engine](https://github.com/cocos/cocos-engine) | 9908 | 2026-10-28 | NOASSERTION(引擎随 Creator) | 3.8 CharacterController / Camera / Input / Physics API | 人物与摄像机走引擎官方 API,不 fork 子示例 |
| [developit/mitt](https://github.com/developit/mitt) | 11906 | 2024-08-14 | MIT | 事件总线 | `assets/scripts/vendor/mitt.ts` 原样适配(MIT 保留版权头) |
| [yoannmoinet/nipplejs](https://github.com/yoannmoinet/nipplejs) | 1953 | 2026-05-27 | MIT | 虚拟摇杆数学 | `nipple-math.ts` 复用 `distance` / `angle` / `clamp` / `force=threshold` |
| [KenneyNL/Starter-Kit-City-Builder](https://github.com/KenneyNL/Starter-Kit-City-Builder) | 1505 | 2026-03-12 | MIT(模型 CC0) | 城市结构目录 + 存档字段 | JSON:`structures[{id,position,orientation}]` + cash;**不移植 Godot 脚本** |
| [primus/eventemitter3](https://github.com/primus/eventemitter3) | 3532 | 2026-01-19 | MIT | 备选事件总线 | 已选 mitt(更小);本仓未再 vendor |
Kenney 站点 glTF(Tiny City / Furniture Kit 等)为 **CC0**,可作为后续 GLB 资产来源(非 GitHub Star 规则对象,但需注明授权)。
## 不合格(明确排除)
| 仓库 | Stars | 原因 |
|---|---:|---|
| cocos/cocos-example-projects | 587 | < 1000 |
| AndyYuTian/ThirdPersonGameTemplate | 1 | < 1000;仅为 3.8 官方案例参考,**不拷贝进仓** |
| cocos-creator/tutorial-mind-your-step-3d | 105 | < 1000 |
| a1076559139/xforge | 250 | < 1000 |
| cocos/cocos-test-projects | 328 | < 1000 |
> 第三人称官方模板 Stars 不足,**不允许**声称「复用了 ThirdPersonGameTemplate」。P0 以 `cocos-engine` 公开 API + nipplejs 数学自研适配。
## 模块 → OSS 映射
| 模块 | 选用 | 复用内容 |
|---|---|---|
| 事件总线 | mitt | `on/off/emit` + Map 存储 |
| 虚拟摇杆 | nipplejs | 距离、角度、半径 clamp、force 阈值 |
| 城市数据 | Kenney City Builder | 结构数组 + cash + 序列化字段形态 |
| 角色/相机 | cocos-engine 3.8 | Input、节点变换、相机跟拍(自写组件) |
| 存档 | 微信 Storage + Kenney 字段思路 | JSON blob;键版本化 |
## 验证动作(本迭代)
1. 已用 GitHub API 拉取上述仓库元数据(非仅读 README)。
2. 已阅读 mitt 源码全文、nipplejs `utils.js` / `nipple.js` 关键算法、Kenney `builder.gd` 存档结构。
3. Cocos 专用 3D 控制器示例无一达标 → 已书面声明,未虚构。