var game = new Game(); game.init({ root: document.body, door_size: 20, maze_num : 15 }).then(function() { game.setCameraPos(0, 50, 50); game.create(); game.render(); });