diff options
Diffstat (limited to 'src/gnu_and_bola_-_the_libre_beat_em_up_game')
3 files changed, 4 insertions, 4 deletions
diff --git a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/gravity.lua b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/gravity.lua index d023bed..9976d48 100644 --- a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/gravity.lua +++ b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/gravity.lua @@ -14,7 +14,7 @@ function gravity(dt) character.bola.jump.velocity = 0 character.bola.position.y = character.bola.jump.ground character.bola.jump.higher = character.bola.jump.higherMax - character.bola.jump.finishJump = true + character.bola.jump.limitButtonJump = true end end diff --git a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/jump.lua b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/jump.lua index fe6646b..d7d81b7 100644 --- a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/jump.lua +++ b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/jump.lua @@ -7,5 +7,5 @@ return { ground = windowProfile.mode.height / 2, higher = 0.15, higherMax = 0.15, - finishJump = false, + limitButtonJump = false, } 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) |