Browser Runtime
Vifu 会把 game 作为 static browser assets 加载。Runtime 需要 HTML entry、relative assets,以及可选的 companion capability metadata。
| Area | Requirement |
|---|---|
| Entry | index.html 等 HTML file,或 Godot Web Export entry。 |
| Assets | 从 build output 出发的 relative path。 |
| Storage | 可以使用 browser storage,但 game 必须在没有 remote state 时也能 boot。 |
| Network | first render 不应依赖 third-party network call。 |
| Companion | 只有使用 SDK 时才声明 companion.plugin.v1。 |
游戏应能在 iframe 中运行:避免 top-level navigation、popup 依赖,以及绕过 SDK 的 parent window 访问。
