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/engine/scenery.js | |
| parent | b9f007562712688612269fad9c71df2d4981acaa (diff) | |
starting refactor
Diffstat (limited to 'assets/javascripts/rectangles/engine/scenery.js')
| -rw-r--r-- | assets/javascripts/rectangles/engine/scenery.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/assets/javascripts/rectangles/engine/scenery.js b/assets/javascripts/rectangles/engine/scenery.js index faeaf6b..3a43755 100644 --- a/assets/javascripts/rectangles/engine/scenery.js +++ b/assets/javascripts/rectangles/engine/scenery.js @@ -30,7 +30,7 @@ var scenery = new function(){ img.height = ~~(300 * img.naturalHeight/img.naturalWidth) }) - clipper.rooms.forEach(function(room){ + Rooms.forEach(function(room){ room.walls.forEach(function(wall){ new_image(wall, choice(images)) }) @@ -45,7 +45,7 @@ var scenery = new function(){ var mx_img = new MX.Image({ src: img.src, x: 0, - y: clipper.rooms[wall.room].height/2 - img.height/2 - 20, + y: Rooms.list[wall.room].height/2 - img.height/2 - 20, z: 0, scale: 300/img.naturalWidth, rotationY: 0, |
