diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-11-26 16:33:47 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2016-11-28 12:25:57 -0300 |
commit | b6e0a385398f2b6f4a5595415e725dc9f0f11c85 (patch) | |
tree | aef9b96d3390de5d2af99ec565b9aadde7d8c497 /src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/jump.lua | |
parent | 8dc408a1360c2df6629f40aa5a8683a59c7c984c (diff) |
Add platformer-style jumping
Diffstat (limited to 'src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/jump.lua')
-rw-r--r-- | src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/jump.lua | 12 |
1 files changed, 7 insertions, 5 deletions
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 e736323..42c1868 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 @@ -1,8 +1,10 @@ return { love.graphics.newQuad(metaSprites.bola.x * 5, metaSprites.bola.y * 2, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - start = 1, - fps = 9, - height = -300, - velocity = 0, - ground = windowProfile.mode.height / 2, + start = 1, + fps = 9, + height = -250, + velocity = 0, + ground = windowProfile.mode.height / 2, + higher = 0.15, + higherMax = 0.15, } |