From 94892a4e24b5c7b9618d6d5ae3e676b11ae8896d Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Sun, 31 Aug 2014 09:42:42 +0200 Subject: Added gamepad support for poison pills --- game/prefabs/player.js | 1 + 1 file changed, 1 insertion(+) (limited to 'game/prefabs/player.js') 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); -- cgit v1.2.3