Skip to main content

Function: createWorld()

createWorld(game, name?): World

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

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

Parameters

game

Game

The game instance to register the world with.

name?

string

The name of the world to create.

Returns

World

The new ECS world instance.