Instance
An instance is the shared room every player in it sees, the canvas they all point on. Its own state is small: Pointing keeps only the canvas dimensions, and because nothing about the room changes over time it has no per-tick instance update script.
gamehoster-instance-schema.json
The instance's shared state: a fixed width and height, both
sent to every client so it can size its canvas.
[
{
"gamehoster-instance-schema-name": "width",
"gamehoster-instance-schema-type": "int",
"gamehoster-instance-schema-default": 960,
"gamehoster-instance-schema-sync": "sent",
"gamehoster-instance-schema-audience": "all"
},
{
"gamehoster-instance-schema-name": "height",
"gamehoster-instance-schema-type": "int",
"gamehoster-instance-schema-default": 600,
"gamehoster-instance-schema-sync": "sent",
"gamehoster-instance-schema-audience": "all"
}
]