forked from xiangwang25/whale-town-front-v2
docs: document frontend exports
This commit is contained in:
11
README.md
11
README.md
@@ -16,6 +16,17 @@ WhaleTown V2 前端是基于 Godot 4.6 的 2D 多人小镇客户端。
|
||||
2. 用 Godot 打开 `project.godot`。
|
||||
3. 运行默认主场景。
|
||||
|
||||
## 导出
|
||||
|
||||
仓库包含 Web 和 Linux 导出预设。安装 Godot 4.6 导出模板后可执行:
|
||||
|
||||
```bash
|
||||
godot --headless --path . --export-release Web build/web/index.html
|
||||
godot --headless --path . --export-release "Linux/X11" build/linux/WhaleTown-V2.x86_64
|
||||
```
|
||||
|
||||
Web 产物是静态文件,必须通过 HTTP/HTTPS 服务器发布,不要直接用 `file://` 打开。
|
||||
|
||||
默认连接 WhaleTown 生产 API 和 WebSocket 服务。本地联调时可使用以下环境变量覆盖:
|
||||
|
||||
- `WHALETOWN_API_BASE_URL`
|
||||
|
||||
Reference in New Issue
Block a user