createGame関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Creates an immutable seeded 2×2-block game with a fixed queue and explicit floor schedule.
インポート
import { createGame } from "@johnmorrisdotca/houseki/magnetic-blocks";
定義
function createGame(options?: import("./types.js").CreateOptions): GameState
引数
| 名前 | 型 | 説明 |
|---|---|---|
options (省略可) | CreateOptions | Validated native creation, authored challenge, or environment options described by this signature. |
戻り値
GameState
Creates an immutable seeded 2×2-block game with a fixed queue and explicit floor schedule.
例
import { createGame } from "@johnmorrisdotca/houseki/magnetic-blocks";
console.log(createGame({seed:"docs"}).phase);falling出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。