summaryrefslogtreecommitdiff
path: root/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion.lua')
-rw-r--r--src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion.lua b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion.lua
index 109b873..0b6ad46 100644
--- a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion.lua
+++ b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion.lua
@@ -4,7 +4,7 @@ function motionModule.motion(dt)
if character.bola.jump.higher > 0 and love.keyboard.isScancodeDown(button.a) then
jump(dt)
else
- character.bola.jump.finishJump = false
+ character.bola.jump.limitButtonJump = false
end
if love.keyboard.isScancodeDown(button.left) then
@@ -20,7 +20,7 @@ function motionModule.motion(dt)
end
function jump(dt)
- if character.bola.jump.finishJump == false then
+ if character.bola.jump.limitButtonJump == false then
character.bola.jump.higher = character.bola.jump.higher - dt
character.bola.jump.velocity = character.bola.jump.velocity + character.bola.jump.height * (dt / character.bola.jump.higherMax)