var environment = new function(){} environment.init = function(){ scene.camera.move({ "x": 240, "y": -1000, "z": 240, "rotationX": -PI/2, "rotationY": 0 // PI }) map && map.zoom(3.00) && map.recenter() clipper.rects.push( new rect(100,100, 200,300) ) clipper.rects.push( new rect(200,300, 300,500) ) clipper.rects.push( new rect(300,100, 600,300) ) clipper.rects.push( new rect(400,200, 700,400) ) clipper.init() scene.update() } environment.update = function(t){ }