From 84f7df839be061fca91af78d72f7c8c222885eb1 Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 14 Jan 2017 21:12:19 +0100 Subject: Adjusted sensor sizes --- player.lua | 8 ++++---- 1 file 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) -- cgit v1.1