summaryrefslogtreecommitdiffhomepage
path: root/player.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-05-13 00:02:34 +0200
committerAki <nthirtyone@gmail.com>2016-05-13 00:02:34 +0200
commit612b102dac85d48f4cbbdc0762521128947ae56f (patch)
tree0fa74b7fa3e724b01e15f832c77de6d04bed4a47 /player.lua
parent33fd541bf44c718133be540f89d7dff2c723c282 (diff)
downloadroflnauts-612b102dac85d48f4cbbdc0762521128947ae56f.zip
roflnauts-612b102dac85d48f4cbbdc0762521128947ae56f.tar.gz
roflnauts-612b102dac85d48f4cbbdc0762521128947ae56f.tar.bz2
Cleanup
Diffstat (limited to 'player.lua')
-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