diff options
author | Justin Worthe <justin.worthe@gmail.com> | 2014-09-21 10:31:48 +0200 |
---|---|---|
committer | Justin Worthe <justin.worthe@gmail.com> | 2014-09-21 10:31:48 +0200 |
commit | c508e9ef283a4069ea1af923ca1a241d2c954a1e (patch) | |
tree | 930f8ad620fdde4e1668cd1909fc9eaca35fcae1 /game/entities/wall.js | |
parent | 48049a71ab041d8b109e2a7a12a8439ed3be812a (diff) |
Renamed prefab folder
Diffstat (limited to 'game/entities/wall.js')
-rw-r--r-- | game/entities/wall.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/game/entities/wall.js b/game/entities/wall.js new file mode 100644 index 0000000..c4eee79 --- /dev/null +++ b/game/entities/wall.js @@ -0,0 +1,12 @@ +'use strict'; + +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); +Wall.prototype.constructor = Wall; + +module.exports = Wall; |