diff options
Diffstat (limited to 'assets/javascripts/rectangles/_env.js')
| -rw-r--r-- | assets/javascripts/rectangles/_env.js | 41 |
1 files changed, 17 insertions, 24 deletions
diff --git a/assets/javascripts/rectangles/_env.js b/assets/javascripts/rectangles/_env.js index 818cb55..be3d931 100644 --- a/assets/javascripts/rectangles/_env.js +++ b/assets/javascripts/rectangles/_env.js @@ -2,50 +2,43 @@ var environment = new function(){} environment.init = function(){ window.scene && scene.camera.move({ - "x": 500, + "x": 1000, "y": 1500, - "z": 200, - "rotationX": PI/2, - "rotationY": PI + "z": 250, + "rotationX": 0, // PI/2, + "rotationY": PI/2, // PI }) // map.center.a = scene.camera.x // map.center.b = scene.camera.z - map.center.a = 100 - map.center.b = 100 + map.center.a = 0 + map.center.b = 0 clipper.rooms.push( new room ({ - rect: new rect(-100,-100, 100,100), - height: 400, + rect: new rect(0,0, 500,500), + height: 500, })) clipper.rooms.push( new room ({ - rect: new rect(100,100, 200,300), - height: 400, + rect: new rect(600,0, 1100,500), + height: 500, })) clipper.rooms.push( new room ({ - rect: new rect(200,300, 300,500), - height: 400, - })) - clipper.rooms.push( new room ({ - rect: new rect(300,100, 600,300), - height: 400, - })) - clipper.rooms.push( new room ({ - rect: new rect(400,200, 700,400), - height: 400, + rect: new rect(450,150, 650,350), + height: 300, })) + app.movements.gravity(true) - builder.init() - if (window.location.href.match(/stone/)) { - builder.tube.on("clip", function(){ + app.on("clip", function(){ $(".face").css({ "background-image": "url(http://i.asdf.us/im/4a/_1398144847_frankhats.gif)" }) }) $("#map").hide() } - + + builder.init() + mover.init() clipper.init() window.scene && scene.update() environment.update() |
