World

core/World~ World

new World(scene, label)

Source:
Parameters:
Name Type Description
scene module:core/Scene~Scene Scene to create world with
label string String to be used as key id when saving world to localStorage
Example

Add a scene to a world

const Voxelcss = require('voxelcss');
let scene = new Voxelcss.Scene();
let world = new Voxelcss.World(scene);