summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge Lopez Seijas <jorginho@riseup.net>2016-11-28 22:05:43 +0100
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-11-29 17:55:14 -0300
commit7ed6fccb3947d5a8277f6149370d475eb4fbac79 (patch)
tree17e0099b29a3d250a3a9274585200863ca9b89f8
parent3979e31f862a53a03a5006771ac687c37ab3ae6a (diff)
Change finishJump to limitButtonJump variable
-rw-r--r--src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/gravity.lua2
-rw-r--r--src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/jump.lua2
-rw-r--r--src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion.lua4
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)