summaryrefslogtreecommitdiff
path: root/game/prefabs
diff options
context:
space:
mode:
authorJustin Worthe <justin.worthe@gmail.com>2014-08-31 09:42:42 +0200
committerJustin Worthe <justin.worthe@gmail.com>2014-08-31 09:42:42 +0200
commit94892a4e24b5c7b9618d6d5ae3e676b11ae8896d (patch)
treeb1d6148541c2bb2c1d38f3ea24485d57b00c9185 /game/prefabs
parent200c0896bc0e03f1ea15654abf76bddcbbe80989 (diff)
Added gamepad support for poison pills
Diffstat (limited to 'game/prefabs')
-rw-r--r--game/prefabs/player.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/game/prefabs/player.js b/game/prefabs/player.js
index f0a6b65..44c4aa2 100644
--- a/game/prefabs/player.js
+++ b/game/prefabs/player.js
@@ -25,6 +25,7 @@ var Player = function(game, x, y, key, frame, soundKey) {
this.hasPoisonPill = true;
this.poisonPillActive = false;
+ this.gamepadPoisonLastPressed = Number.NEGATIVE_INFINITY;
this.lastTween = null;
this.scoreSound = game.sound.add(soundKey);