summaryrefslogtreecommitdiff
path: root/assets/javascripts/rectangles/_env.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2014-06-03 16:24:10 -0400
committerJules Laplace <jules@okfoc.us>2014-06-03 16:24:28 -0400
commit607f69c67a5b4dc72d2754192e3cdf67d0ad11d0 (patch)
tree6556e7922c5bedb274bb1650e5dd100643a7895d /assets/javascripts/rectangles/_env.js
parentd31259291d807c851de4396921e0c26b6dd8dce2 (diff)
partitioning client and serveR
Diffstat (limited to 'assets/javascripts/rectangles/_env.js')
-rw-r--r--assets/javascripts/rectangles/_env.js49
1 files changed, 0 insertions, 49 deletions
diff --git a/assets/javascripts/rectangles/_env.js b/assets/javascripts/rectangles/_env.js
deleted file mode 100644
index 972b1fe..0000000
--- a/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
-}