Adjust jumping

This commit is contained in:
jordan4ibanez 2017-07-10 00:36:14 -04:00
parent 2d79429adf
commit e1fa02c52c
2 changed files with 4 additions and 2 deletions

View File

@ -48,7 +48,9 @@ function physics.gravity()
player.inertiay = 0
--player.on_block = false
else
player.inertiay = player.inertiay + 0.01
if player.inertiay < 1 then
player.inertiay = player.inertiay + 0.01
end
end
end

View File

@ -29,7 +29,7 @@ function move(dt)
if love.keyboard.isDown("w") then
--jump()
physics.player_mod_y(-0.2)
physics.player_mod_y(-0.15)
end
if love.keyboard.isDown("s") then
physics.player_mod_y(0.01)