diff options
author | Aki <nthirtyone@gmail.com> | 2016-05-13 00:02:34 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2016-05-13 00:02:34 +0200 |
commit | 612b102dac85d48f4cbbdc0762521128947ae56f (patch) | |
tree | 0fa74b7fa3e724b01e15f832c77de6d04bed4a47 | |
parent | 33fd541bf44c718133be540f89d7dff2c723c282 (diff) | |
download | roflnauts-612b102dac85d48f4cbbdc0762521128947ae56f.zip roflnauts-612b102dac85d48f4cbbdc0762521128947ae56f.tar.gz roflnauts-612b102dac85d48f4cbbdc0762521128947ae56f.tar.bz2 |
Cleanup
-rw-r--r-- | player.lua | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 |