diff --git a/game/player.script b/game/player.script index c7295ee..78e4a22 100644 --- a/game/player.script +++ b/game/player.script @@ -223,8 +223,8 @@ local function jump(self) -- compress and stretch player for visual "juice" squish() -- allow double jump if still moving up - elseif not self.double_jump and self.velocity.y > 0 then - self.velocity.y = self.velocity.y + DOUBLEJUMP_TAKEOFF_SPEED + elseif not self.double_jump then + self.velocity.y = DOUBLEJUMP_TAKEOFF_SPEED self.double_jump = true end -- add some particles diff --git a/input/game.input_binding b/input/game.input_binding index 9921e47..cdfe6f5 100755 --- a/input/game.input_binding +++ b/input/game.input_binding @@ -10,6 +10,10 @@ key_trigger { input: KEY_SPACE action: "jump" } +key_trigger { + input: KEY_UP + action: "jump" +} key_trigger { input: KEY_X action: "fire"