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がゲームの HTML 入口です。target/webがデプロイ出力です。vifu setupはengine: vanillaとして検出します。- AI、クラウド保存、コンパニオンブリッジは有効にしていません。
重要な設定値は次の通りです。
json
{
"name": "Hello Web",
"main": {
"url": "index.html",
"engine": "vanilla"
},
"build": {
"output": "target/web"
}
}デプロイ
bash
vifu deployCLI はプロジェクトを検証し、静的出力をビルドしてアップロードし、プレイ可能なクラウド URL を表示します。