new World(scene, label)
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
const Voxelcss = require('voxelcss');
let scene = new Voxelcss.Scene();
let world = new Voxelcss.World(scene);