removing patch file, changing jump check for CheckPressed instead of CheckDown

This commit is contained in:
lustlion 2022-02-26 21:33:01 +01:00
parent 8bad3894dc
commit 4f6d0890e3
2 changed files with 4 additions and 4 deletions

View File

@ -91,8 +91,8 @@ function Player:Smart()
self.move_x = self.moveSpeed
end
-- jump if on ground (coyotevalue) or if on wall (wallHit)
if Keybind:CheckDown(Keybind.move.jump) then
-- jump if on ground (coyotevalue) or if 0
if Keybind:CheckPressed(Keybind.move.jump) then
if self.coyoteValue > 0 then
self.vel.y = -self.jumpImpulse
self.coyoteValue = 0

View File

@ -50,8 +50,8 @@ function love.load()
main_Player = Player:New(75,50)
Kupo:New(100,150)
Kupo:New(300,150)
--Kupo:New(100,150)
--Kupo:New(300,150)
HookAnchor:New(200,89)
HookAnchor:New(400,89)
Fairy:New(200,88)