summaryrefslogtreecommitdiff
path: root/assets/javascripts/rectangles/_env.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/javascripts/rectangles/_env.js')
-rw-r--r--assets/javascripts/rectangles/_env.js21
1 files changed, 13 insertions, 8 deletions
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
}