From 1f787dd7d68247669ebcdf71b2afab56cb1c3d9b Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 14 Jan 2017 21:05:49 +0100 Subject: Clear commented out part --- player.lua | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/player.lua b/player.lua index 544f89e..133e266 100644 --- a/player.lua +++ b/player.lua @@ -71,28 +71,6 @@ function Player:new (game, world, x, y, name) -- Animation o.current = o.animations.idle o:createEffect("respawn") - --[[ New punch mechanics - local fixture = love.physics.newFixture(o.body, love.physics.newPolygonShape(-6,-6, -20,-6, -20,6, -6,6), 0) -- LEFT - fixture:setSensor(true) - fixture:setCategory(3) - fixture:setMask(1,3) - fixture:setGroupIndex(group) - local fixture = love.physics.newFixture(o.body, love.physics.newPolygonShape(6,-6, 20,-6, 20,6, 6,6), 0) -- RIGHT - fixture:setSensor(true) - fixture:setCategory(3) - fixture:setMask(1,3) - fixture:setGroupIndex(group) - o.punch_right = fixture - local fixture = love.physics.newFixture(o.body, love.physics.newPolygonShape(-8,-7, -8,-20, 8,-20, 8,-7), 0) -- UP - fixture:setSensor(true) - fixture:setCategory(3) - fixture:setMask(1,3) - fixture:setGroupIndex(group) - local fixture = love.physics.newFixture(o.body, love.physics.newPolygonShape(-8,7, -8,20, 8,20, 8,7), 0) -- DOWN - fixture:setSensor(true) - fixture:setCategory(3) - fixture:setMask(1,3) - fixture:setGroupIndex(group)]] -- Portrait load for first object created if self.portrait_sprite == nil then self.portrait_sprite = love.graphics.newImage("assets/portraits.png") -- cgit v1.1