Skip to main content

Function: createWorld()

createWorld(name, game): World

Defined in: ecs/utilities/create-world.ts:11

Creates a new world with the specified name and registers it with the game.

Parameters

name

string

The name of the world to create.

game

Game

The game instance to register the world with.

Returns

World

The new ECS world instance.