diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-04-22 18:39:14 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-04-22 18:39:14 -0400 |
| commit | f94cf0d133a5d426a20cb5ac7eeb60f72b690119 (patch) | |
| tree | b605578151d9d1118dc8921845d9bc205a6f1f3b /assets/javascripts/rectangles/_env.js | |
| parent | d08f365e4deb3206fd3361c7395268983510d831 (diff) | |
turn on gravity
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() |
