diff options
author | Aki <nthirtyone@gmail.com> | 2017-01-14 21:12:19 +0100 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-01-14 21:12:19 +0100 |
commit | 84f7df839be061fca91af78d72f7c8c222885eb1 (patch) | |
tree | fd41944103fb87de19f03082f4ec6b5ed7421be3 | |
parent | efe80dc4f1e5c52929717b442e6305731577808c (diff) | |
download | roflnauts-84f7df839be061fca91af78d72f7c8c222885eb1.zip roflnauts-84f7df839be061fca91af78d72f7c8c222885eb1.tar.gz roflnauts-84f7df839be061fca91af78d72f7c8c222885eb1.tar.bz2 |
Adjusted sensor sizes
-rw-r--r-- | player.lua | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) |