Adjust jumping
This commit is contained in:
parent
2d79429adf
commit
e1fa02c52c
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user