Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

createGameWorld

createGameWorld(plugins?, physics?): World

One world per game, and one per test case: a server runs one per room in one process. Its entities dispose what they tracked on the way out. Koota fires onRemove before it drops the trait’s data, so the list is still there to read. The step runs what plugins composes around the core, the core alone when left out, and its physics scene steps with physics, the defaults when left out. Its random stream starts seeded with defaultRandomSeed, so a checkpoint taken before its first draw still carries it.

Parameter Type Default value
plugins PluginList []
physics PhysicsSettings defaultPhysics

World