From 612b102dac85d48f4cbbdc0762521128947ae56f Mon Sep 17 00:00:00 2001 From: Aki Date: Fri, 13 May 2016 00:02:34 +0200 Subject: Cleanup --- player.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/player.lua b/player.lua index 35708ea..22a3900 100644 --- a/player.lua +++ b/player.lua @@ -49,7 +49,6 @@ function Player:new(world, x, y, spritesheet) o.fixture:setCategory(2) o.fixture:setMask(2) o.body:setFixedRotation(true) - print(o.body.mass) -- Animation o.initial = o.delay o.current = o.animations.idle @@ -69,7 +68,7 @@ function Player:update(dt) -- Salto if not self.jumpdouble and self.inAir then self.rotate = (self.rotate + 17 * dt * self.facing) % 360 - else + elseif self.rotate ~= 0 then self.rotate = 0 end -- cgit v1.1