From 1af8f41cc88e3c57bfabe6d4a5dcd83fc4a0e1bc Mon Sep 17 00:00:00 2001 From: Julie Lala Date: Thu, 17 Apr 2014 02:32:53 -0400 Subject: further code bath, fix minimap orientation/translation --- assets/javascripts/rectangles/_env.js | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'assets/javascripts/rectangles/_env.js') diff --git a/assets/javascripts/rectangles/_env.js b/assets/javascripts/rectangles/_env.js index 11e01ba..afbf161 100644 --- a/assets/javascripts/rectangles/_env.js +++ b/assets/javascripts/rectangles/_env.js @@ -2,20 +2,24 @@ var environment = new function(){} environment.init = function(){ window.scene && scene.camera.move({ - "x": 240, - "y": -1000, - "z": 240, - "rotationX": -PI/2, - "rotationY": 0 // PI + "x": 0, + "y": 1000, + "z": 0, + "rotationX": PI/2, + "rotationY": PI }) + clipper.rooms.push( new room ({ + rect: new rect(-100,-100, 100,100), + height: 400, + })) clipper.rooms.push( new room ({ rect: new rect(100,100, 200,300), height: 400, })) clipper.rooms.push( new room ({ rect: new rect(200,300, 300,500), - height: 300, + height: 400, })) clipper.rooms.push( new room ({ rect: new rect(300,100, 600,300), @@ -23,7 +27,7 @@ environment.init = function(){ })) clipper.rooms.push( new room ({ rect: new rect(400,200, 700,400), - height: 500, + height: 400, })) builder.init() @@ -31,5 +35,6 @@ environment.init = function(){ window.scene && scene.update() } environment.update = function(t){ - clipper.animate() + map.animate() + z = false } -- cgit v1.2.3-70-g09d2