summaryrefslogtreecommitdiff
path: root/game/prefabs/wall.js
diff options
context:
space:
mode:
authorJustin Worthe <justin.worthe@gmail.com>2014-04-21 12:08:55 +0200
committerJustin Worthe <justin.worthe@gmail.com>2014-04-21 12:08:55 +0200
commit8de58b344fdb824e47c1d733d470e9e9cecf74f9 (patch)
tree7692c1f13135b2e40412e3645a8120e21467db3a /game/prefabs/wall.js
parente63dfa8396f37f107ba4b910f555ef5fdf4a9ac7 (diff)
Added wall sprites and hard coded a very basic map
closes #2
Diffstat (limited to 'game/prefabs/wall.js')
-rw-r--r--game/prefabs/wall.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/game/prefabs/wall.js b/game/prefabs/wall.js
new file mode 100644
index 0000000..56c7e90
--- /dev/null
+++ b/game/prefabs/wall.js
@@ -0,0 +1,12 @@
+'use strict';
+
+var Wall = function(game, x, y, frame) {
+ Phaser.Sprite.call(this, game, x, y, 'wall', frame);
+
+ // initialize your prefab here
+};
+
+Wall.prototype = Object.create(Phaser.Sprite.prototype);
+Wall.prototype.constructor = Wall;
+
+module.exports = Wall;