summaryrefslogtreecommitdiff
path: root/game/prefabs/wall.js
diff options
context:
space:
mode:
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 11ca511..c4eee79 100644
--- a/game/prefabs/wall.js
+++ b/game/prefabs/wall.js
@@ -3,6 +3,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};
+ this.anchor = {x: 0.5, y: 0.5};
};
Wall.prototype = Object.create(Phaser.Sprite.prototype);