summaryrefslogtreecommitdiff
path: root/game/prefabs/wall.js
diff options
context:
space:
mode:
authorJustin Worthe <justin.worthe@gmail.com>2014-04-21 17:49:29 +0200
committerJustin Worthe <justin.worthe@gmail.com>2014-04-21 17:49:29 +0200
commita5ab29fd2d015f2db65d8062d2bb23222859b6d1 (patch)
tree4c53e3fcb2eb77126625a6c516bf77ebce3dcf6d /game/prefabs/wall.js
parenta9ba8a68d61110cca347e2a4823b25880bc94923 (diff)
Added tracking of where walls are, to prevent moving through
closes #3
Diffstat (limited to 'game/prefabs/wall.js')
-rw-r--r--game/prefabs/wall.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/game/prefabs/wall.js b/game/prefabs/wall.js
index 4b4b42a..11ca511 100644
--- a/game/prefabs/wall.js
+++ b/game/prefabs/wall.js
@@ -2,6 +2,7 @@
var Wall = function(game, x, y, frame) {
Phaser.Sprite.call(this, game, x, y, 'wall', frame);
+ this.scale = {x: 0.01, y: 0.01};
};
Wall.prototype = Object.create(Phaser.Sprite.prototype);