diff options
author | Aki <nthirtyone@gmail.com> | 2017-09-30 19:27:04 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-09-30 19:27:04 +0200 |
commit | 08271656cbe18fbc4432fc758ac42750e818da84 (patch) | |
tree | 2213c9189176f2942b65fe16fcb310e7116bd2c8 /not/Player.lua | |
parent | 6d61fb66d72bb668d71479d3ed5f40b51041639e (diff) | |
download | roflnauts-08271656cbe18fbc4432fc758ac42750e818da84.zip roflnauts-08271656cbe18fbc4432fc758ac42750e818da84.tar.gz roflnauts-08271656cbe18fbc4432fc758ac42750e818da84.tar.bz2 |
Jump moved completely out of Player (I think)
Diffstat (limited to 'not/Player.lua')
-rw-r--r-- | not/Player.lua | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/not/Player.lua b/not/Player.lua index 3d15f31..27ace75 100644 --- a/not/Player.lua +++ b/not/Player.lua @@ -41,29 +41,6 @@ end function Player:controlpressed (set, action, key) if set ~= self:getControllerSet() then return end self.smoke = false -- TODO: temporary - -- Jumping - if action == "jump" then - self.jumpCounter = self.jumpCounter - 1 - if self.jumpCounter > 0 then - -- self:playSound(6) - -- Spawn proper effect - if not self.inAir then - self:createEffect("jump") - else - self:createEffect("doublejump") - end - -- Start salto if last jump - if self.jumpCounter == 1 then - self.salto = true - end - -- Animation clear - if (self.current == self.animations.attack) or - (self.current == self.animations.attack_up) or - (self.current == self.animations.attack_down) then - self:setAnimation("default") - end - end - end -- Walking if (action == "left" or action == "right") then |