Add prototype gameplay loop with character/battlefield assets and server game APIs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
udx
2026-10-20 18:50:00 +08:00
co-authored by Cursor
parent 79369e4473
commit 6c64210331
833 changed files with 998079 additions and 1042 deletions
+5 -2
View File
@@ -6,6 +6,8 @@
> 热更资源 CDN:`https://www.xworld.ren`
> 游戏服:`game.xworld.ren`(WebSocket:`wss://game.xworld.ren/ws?pid=...`)
当前玩法依据:[AIGame 基础游戏设计](GameDesign.md)。功能方向为伙伴收集养成、弹珠、布阵塔防和营地;旧科幻肉鸽方案已归档。UI 当前仅保留 Candy。
---
## 1. 目标与约束
@@ -13,12 +15,12 @@
| 项 | 选型 / 约束 |
| --- | --- |
| 平台 | Unity → 微信小游戏(WebGL / WASM 适配) |
| 屏幕 | **竖屏**(Portrait,基准设计分辨率建议 `750×1624` 或 `1080×1920`) |
| 屏幕 | **竖屏**(Portrait,UI 设计分辨率固定 `1080×1920`) |
| 渲染 | **URP**(已接入 `com.unity.render-pipelines.universal`) |
| 资源加载 | **YooAsset** `3.x`(已接入 `com.tuyoogame.yooasset`) |
| 代码热更 | **HybridCLR**(已接入 `com.code-philosophy.hybridclr`) |
| 资源生产 | 统一走 `ResourceCreate.md` 流水线,完成后登记 `Doc/ResDesc_*.md` |
| 网络 | 长连接 WebSocket;短链 HTTP 仅用于版本/CDN 清单 |
| 网络 | WebSocket 连接/通知;HTTP 登录、幂等玩法 API 与 CDN 清单 |
| CDN | `https://www.xworld.ren` |
| 游戏服域名 | `game.xworld.ren`(Caddy `reverse_proxy`,自动处理 WS Upgrade) |
@@ -370,6 +372,7 @@ BootContext(壳 → 热更)至少传递:
| 文档 | 内容 |
| --- | --- |
| [`GameDesign.md`](GameDesign.md) | 当前基础玩法、系统规则、资源经济与开发验收 |
| [`ResourceCreate.md`](ResourceCreate.md) | 图、3D、减面烘焙生成方式 |
| [`Doc/ResDesc.md`](Doc/ResDesc.md) | 资源登记索引 |
| [`UNITY-GUIDE.md`](UNITY-GUIDE.md) | Agent 操作 Unity 规范 |