summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-01-14 21:12:19 +0100
committerAki <nthirtyone@gmail.com>2017-01-14 21:12:19 +0100
commit84f7df839be061fca91af78d72f7c8c222885eb1 (patch)
treefd41944103fb87de19f03082f4ec6b5ed7421be3
parentefe80dc4f1e5c52929717b442e6305731577808c (diff)
downloadroflnauts-84f7df839be061fca91af78d72f7c8c222885eb1.zip
roflnauts-84f7df839be061fca91af78d72f7c8c222885eb1.tar.gz
roflnauts-84f7df839be061fca91af78d72f7c8c222885eb1.tar.bz2
Adjusted sensor sizes
-rw-r--r--player.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/player.lua b/player.lua
index 40d091c..f4f97d0 100644
--- a/player.lua
+++ b/player.lua
@@ -384,16 +384,16 @@ function Player:hit(direction)
-- actual punch
local fixture
if direction == "left" then
- fixture = love.physics.newFixture(self.body, love.physics.newPolygonShape(-6,-6, -20,-6, -20,6, -6,6), 0)
+ fixture = love.physics.newFixture(self.body, love.physics.newPolygonShape(-2,-6, -20,-6, -20,6, -2,6), 0)
end
if direction == "right" then
- fixture = love.physics.newFixture(self.body, love.physics.newPolygonShape(6,-6, 20,-6, 20,6, 6,6), 0)
+ fixture = love.physics.newFixture(self.body, love.physics.newPolygonShape(2,-6, 20,-6, 20,6, 2,6), 0)
end
if direction == "up" then
- fixture = love.physics.newFixture(self.body, love.physics.newPolygonShape(-8,-7, -8,-20, 8,-20, 8,-7), 0)
+ fixture = love.physics.newFixture(self.body, love.physics.newPolygonShape(-8,-4, -8,-20, 8,-20, 8,-4), 0)
end
if direction == "down" then
- fixture = love.physics.newFixture(self.body, love.physics.newPolygonShape(-8,7, -8,20, 8,20, 8,7), 0)
+ fixture = love.physics.newFixture(self.body, love.physics.newPolygonShape(-8,4, -8,20, 8,20, 8,4), 0)
end
fixture:setSensor(true)
fixture:setCategory(3)