From b6e0a385398f2b6f4a5595415e725dc9f0f11c85 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Sat, 26 Nov 2016 16:33:47 -0300 Subject: Add platformer-style jumping --- .../scripts/bola/motion/gravity.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion/gravity.lua') diff --git a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion/gravity.lua b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion/gravity.lua index 4cc76c4..98ba985 100644 --- a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion/gravity.lua +++ b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion/gravity.lua @@ -13,6 +13,7 @@ function gravity(dt) if character.bola.position.y > character.bola.jump.ground then character.bola.jump.velocity = 0 character.bola.position.y = character.bola.jump.ground + character.bola.jump.higher = character.bola.jump.higherMax end end -- cgit v1.2.3-54-g00ecf