From 68f3de7fbdc2e4119d8546279769004ecda39da0 Mon Sep 17 00:00:00 2001 From: Jorge Lopez Seijas Date: Mon, 28 Nov 2016 22:05:43 +0100 Subject: Change finishJump to limitButtonJump variable --- src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/gravity.lua | 2 +- src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/jump.lua | 2 +- src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion.lua | 4 ++-- 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) -- cgit v1.2.3