跳到正文

Hello World

这个第一方 starter 是最小可部署的 Vifu Web 游戏。先看它,可以理解项目结构,再构建更大的游戏。

打开 Starter

bash
git clone --recurse-submodules https://github.com/vifudotdev/awesome-open-source-ai-native-games
cd awesome-open-source-ai-native-games/starters/hello-web

它配置了什么

Hello World 是纯静态 Web 项目:

  • index.html 是游戏入口。
  • target/web 是部署输出目录。
  • vifu setup 会检测为 engine: vanilla
  • 没有启用 AI、云存档或 Companion 桥接。

关键配置是:

json
{
  "name": "hello-web"
}

部署

bash
vifu deploy

CLI 会验证项目、构建静态输出、上传,并输出可玩的云端链接。