Reference · Shizen and Arashi environments
createNatureStatefunction
Create a validated seeded native environment grid with fixed masks and mechanic switches.
Import it
import { createNatureState } from "@johnmorrisdotca/houseki/nature";
Definition
function createNatureState(options: NatureOptions): NatureState
Parameters
| Name | Type | Description |
|---|---|---|
options | NatureOptions | Validated native creation, authored challenge, or environment options described by this signature. |
Returns
NatureState
Create a validated seeded native environment grid with fixed masks and mechanic switches.
Examples
import { createNatureState } from "@johnmorrisdotca/houseki/nature";
console.log(createNatureState({width:4,height:4,seed:"docs"}).width);4What it prints (run when this page was built)