From 90142bd07f926ef8a7f3ea86a563ec0ca648ca5d Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 3 Jun 2014 17:51:34 -0400 Subject: pulling in more stuff from posthang --- client/assets/javascripts/rectangles/_env.js | 49 ---------------------------- 1 file changed, 49 deletions(-) delete mode 100644 client/assets/javascripts/rectangles/_env.js (limited to 'client/assets/javascripts/rectangles/_env.js') diff --git a/client/assets/javascripts/rectangles/_env.js b/client/assets/javascripts/rectangles/_env.js deleted file mode 100644 index 972b1fe..0000000 --- a/client/assets/javascripts/rectangles/_env.js +++ /dev/null @@ -1,49 +0,0 @@ - -var environment = new function(){} -environment.init = function(){ - if (window.scene) { - scene.camera.move({ - "x": 0, - "y": 0, - "z": 0, - "rotationX": 0, // PI/2, - "rotationY": PI/2, // PI -// "rotationX": 0, -// "rotationY": PI - }) - - scene.camera.radius = 20 - } - -// map.center.a = scene.camera.x -// map.center.b = scene.camera.z - map.center.a = 0 - map.center.b = 0 - - Rooms.list.push( new Room ({ - rect: new Rect(-500,-500, 500,500), - height: 500, - })) - Rooms.list.push( new Room ({ - rect: new Rect(600,0, 1100,500), - height: 500, - })) - Rooms.list.push( new Room ({ - rect: new Rect(450,150, 650,350), - height: 300, - })) - - app.movements.gravity(true) - - $("#map").hide() - - Rooms.init() - Scenery.init() - - scene.update() - environment.update() -} -environment.update = function(t){ - map.update() - z = false -} -- cgit v1.2.3-70-g09d2