ScenarioOptions
What defineScenario takes: every field is data, and each one left out
takes its default.
Properties
Section titled “Properties”| Property | Type | Default value | Description |
|---|---|---|---|
backend? |
GraphicsBackend |
GraphicsBackend.Auto |
The GPU interface the page asks for. A tool refuses a backend it cannot draw on, rather than draw on another. |
drive? |
ScenarioDrive |
ScenarioDrive.Still |
Who plays once the world is made. |
facingRadians? |
number |
the scene's own spawn's |
The way the player’s character faces as it spawns, as <CharacterSpawn>’s facing reads it. |
level? |
FixedQualityLevel |
QualityLevel.High |
The quality level the page draws at, which a budget is kept for. |
overrides? |
Partial<QualitySettings> |
undefined |
The level’s values over the game’s own, as Game’s quality.levels sets them, such as { bloom: false } to price bloom. |
population? |
ScenarioPopulation |
undefined |
Who takes part beside the world. |
position? |
readonly [number, number, number] |
the scene's own spawn |
Where the player’s character spawns, in metres, over the position the scene’s <CharacterSpawn> gives it. |
scene? |
string |
the game’s start |
The registered scene the world opens on. |
seed? |
number |
defaultRandomSeed |
The seed the world’s random stream starts from, as a page’s ?seed= sets it. |
tickRate? |
30 | 60 |
the game's own: its room's, or 60 for a game played alone |
Steps a second the world runs at. |
viewport? |
ScenarioViewport |
1920 by 1080 |
The size of the page. |
warmth? |
ScenarioWarmth |
ScenarioWarmth.Cold |
What the browser holds before the page loads. |