Hello World
这个 example 是最小可部署的 Vifu Web 游戏。先看它,可以理解项目结构,再适配更大的游戏。
打开 Example
bash
git clone --recurse-submodules https://github.com/vifu-labs/vifu-examples
cd vifu-examples/01_getting_started/hello_web它配置了什么
Hello World 是纯静态 Web 项目:
index.html是游戏入口。target/web是部署输出目录。vifu setup会检测为engine: vanilla。- 没有启用 AI、云存档或 Companion 桥接。
关键配置是:
json
{
"name": "Hello Web",
"main": {
"url": "index.html",
"engine": "vanilla"
},
"build": {
"output": "target/web"
}
}部署
bash
vifu deployCLI 会验证项目、构建静态输出、上传,并输出可玩的云端链接。