Skip to content

公開前チェック

@consenger/companion-sdk を使う Vifu browser game は、公開前にこの checklist を確認します。

パッケージ

  • @consenger/[email protected] を使う。
  • local run、test、build、publish workflow には @consenger/[email protected] を使う。
  • 新しい compatibility line が document されるまでは 0.1.x に合わせる。
  • bundler を使わない game では browser build を game と一緒に同梱する。

Manifest

  • entry に browser entry file を指定する。
  • capabilitiescompanion.plugin.v1 を追加する。
  • title、description、language tag、genre tag は player-facing な説明にする。

Runtime behavior

  • Vifu host bridge がなくても、通常の browser tab で game が動くこと。
  • companion feature は companion.isHostConnected() が true のときだけ有効にする。
  • context と command は startup 時に登録し、frame ごとに再登録しない。

Companion safety

  • context は player が安全に知れる情報だけにする。
  • token、private note、account identifier、hidden answer、future content は含めない。
  • command は input を validate し、stable な result object を返す。

検証

  • local で game を開く。
  • companion.status() が expected SDK version と protocol を返すことを確認する。
  • context read、command、observation をそれぞれ一度は発火させる。
  • host bridge がない状態でも game が壊れないことを確認する。