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
The game instance to register the world with.
name?
string
The name of the world to create.
Returns
The new ECS world instance.