summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-07-13 01:17:25 +0200
committerAki <nthirtyone@gmail.com>2016-07-13 01:17:25 +0200
commit6055ca3eacf8b28b76132d4709d5da36814d6811 (patch)
tree7e6fe5504b7b60f2059e3a91305842c4ee480963
parent46848d5bcf285e424eed510ac61dfff90b1146ac (diff)
downloadroflnauts-6055ca3eacf8b28b76132d4709d5da36814d6811.zip
roflnauts-6055ca3eacf8b28b76132d4709d5da36814d6811.tar.gz
roflnauts-6055ca3eacf8b28b76132d4709d5da36814d6811.tar.bz2
Improved vertical punching
-rw-r--r--player.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/player.lua b/player.lua
index a0599a3..2a5d270 100644
--- a/player.lua
+++ b/player.lua
@@ -239,13 +239,13 @@ function Player:controllerPressed (key)
if self.current ~= self.animations.damage then
self:changeAnimation("attack_up")
end
- self:hit(2*f,-10,3*f,7, 0, -1)
+ self:hit(-f,-18,4*f,10, 0, -1)
elseif controller:isDown("down") then
-- Punch down
if self.current ~= self.animations.damage then
self:changeAnimation("attack_down")
end
- self:hit(-4,-2,4,7, 0, 1)
+ self:hit(-4,-2,4,9, 0, 1)
else
-- Punch horizontal
if self.current ~= self.animations.damage then