summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--player.lua3
1 files changed, 1 insertions, 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