summaryrefslogtreecommitdiff
path: root/game/prefabs/pill.js
diff options
context:
space:
mode:
authorJustin Worthe <justin.worthe@entelect.co.za>2014-07-17 19:23:25 +0200
committerJustin Worthe <justin.worthe@entelect.co.za>2014-07-17 19:23:25 +0200
commit920eccd0fe8a8acc6ff03f4333a400a9782f6d1a (patch)
treed26ab4e1fbc08979ce4e219e9699d70587340ed0 /game/prefabs/pill.js
parent95cecb4933b7b991308c91abcc99a5281c479765 (diff)
Added bonus pill and bumped phaser version
Diffstat (limited to 'game/prefabs/pill.js')
-rw-r--r--game/prefabs/pill.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/game/prefabs/pill.js b/game/prefabs/pill.js
index 50c0277..29bf7a2 100644
--- a/game/prefabs/pill.js
+++ b/game/prefabs/pill.js
@@ -6,12 +6,10 @@ var Pill = function(game, x, y, frame) {
this.anchor = {x: 0.5, y: 0.5};
this.game.physics.arcade.enableBody(this);
+ this.score = 1;
};
Pill.prototype = Object.create(Phaser.Sprite.prototype);
Pill.prototype.constructor = Pill;
-Pill.prototype.update = function() {
-};
-
module.exports = Pill;