summaryrefslogtreecommitdiffhomepage
path: root/player.lua
diff options
context:
space:
mode:
Diffstat (limited to 'player.lua')
-rw-r--r--player.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/player.lua b/player.lua
index fcbe83f..ab7e739 100644
--- a/player.lua
+++ b/player.lua
@@ -135,6 +135,7 @@ function Player:keypressed (key)
-- Jumping
if key == self.key_jump then
if not self.inAir then
+ w:createEffectBottom("jump", self.body:getX()-12, self.body:getY()-15)
self.jumpactive = true
if (self.current == self.animations.attack) or
(self.current == self.animations.attack_up) or
@@ -142,6 +143,7 @@ function Player:keypressed (key)
self:changeAnimation("idle")
end
elseif self.jumpdouble then
+ w:createEffectBottom("doublejump", self.body:getX()-12, self.body:getY()-15)
self.jumpactive = true
self.jumpdouble = false
end