summaryrefslogtreecommitdiff
path: root/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/update/motion/jump.lua
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-12-04 11:43:03 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-12-04 11:43:03 -0300
commitbe92c47794d735812daca917fb1ff6b0d621f948 (patch)
tree53c3d1bfbc4e35341abbf19f92dbf45c763d2012 /src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/update/motion/jump.lua
parente474d4bf0565a46e59cad616f2cf1be8b1536ed2 (diff)
Keep the code more KISS - part 5
Diffstat (limited to 'src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/update/motion/jump.lua')
-rw-r--r--src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/update/motion/jump.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/update/motion/jump.lua b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/update/motion/jump.lua
new file mode 100644
index 0000000..1005a53
--- /dev/null
+++ b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/update/motion/jump.lua
@@ -0,0 +1,9 @@
+function jump(dt)
+ 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)
+
+ -- game.animation(character.bola.jump, dt)
+ -- metaSprites.bola.quad = character.bola.jump[character.bola.jump.currentFrame]
+ end
+end