diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-05-02 13:25:44 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-05-02 13:25:44 -0400 |
| commit | 623916fe0961c6a2baeb3038224c22575050186d (patch) | |
| tree | 0937c16eedc744fd33ae4c42fd588e206a29d44a /assets/javascripts/rectangles/_env.js | |
| parent | b9f007562712688612269fad9c71df2d4981acaa (diff) | |
starting refactor
Diffstat (limited to 'assets/javascripts/rectangles/_env.js')
| -rw-r--r-- | assets/javascripts/rectangles/_env.js | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/assets/javascripts/rectangles/_env.js b/assets/javascripts/rectangles/_env.js index 3f9d811..18d4f05 100644 --- a/assets/javascripts/rectangles/_env.js +++ b/assets/javascripts/rectangles/_env.js @@ -18,15 +18,15 @@ environment.init = function(){ // map.center.a = 0 // map.center.b = 0 - clipper.rooms.push( new Room ({ + Rooms.list.push( new Room ({ rect: new Rect(-500,-500, 500,500), height: 500, })) - clipper.rooms.push( new Room ({ + Rooms.list.push( new Room ({ rect: new Rect(600,0, 1100,500), height: 500, })) - clipper.rooms.push( new Room ({ + Rooms.list.push( new Room ({ rect: new Rect(450,150, 650,350), height: 300, })) @@ -35,21 +35,13 @@ environment.init = function(){ // $("#map").hide() - builder.init() - clipper.init() - mover.init() - scenery.init() - window.scene && scene.update() + Rooms.init() + Scenery.init() + + scene.update() environment.update() } environment.update = function(t){ - if (window.scene && scene.camera) { -// map.center.a = scene.camera.x -// map.center.b = -scene.camera.z - } - else { - requestAnimationFrame(environment.update) - } map.update() z = false } |
