summaryrefslogtreecommitdiff
path: root/assets/javascripts/rectangles/engine/scenery.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2014-05-02 13:25:44 -0400
committerJules Laplace <jules@okfoc.us>2014-05-02 13:25:44 -0400
commit623916fe0961c6a2baeb3038224c22575050186d (patch)
tree0937c16eedc744fd33ae4c42fd588e206a29d44a /assets/javascripts/rectangles/engine/scenery.js
parentb9f007562712688612269fad9c71df2d4981acaa (diff)
starting refactor
Diffstat (limited to 'assets/javascripts/rectangles/engine/scenery.js')
-rw-r--r--assets/javascripts/rectangles/engine/scenery.js4
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,