summaryrefslogtreecommitdiff
path: root/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/game/jump.lua
blob: 1891af5a9e5d899a14f0b372b6e77dbc46a0cf4d (plain)
1
2
3
4
5
6
7
8
9
game.jump = function(metaSprites, character, dt)
  if character.jump.limitButtonJump == false then
    character.jump.higher   = character.jump.higher - dt
    character.jump.velocity = character.jump.velocity + character.jump.height * (dt / character.jump.higherMax)

    --  game.animation(character.jump, dt)
    --  metaSprites.quad = character.jump[character.jump.currentFrame]
  end
end