removing patch file, changing jump check for CheckPressed instead of CheckDown
This commit is contained in:
parent
8bad3894dc
commit
4f6d0890e3
|
@ -91,8 +91,8 @@ function Player:Smart()
|
||||||
self.move_x = self.moveSpeed
|
self.move_x = self.moveSpeed
|
||||||
end
|
end
|
||||||
|
|
||||||
-- jump if on ground (coyotevalue) or if on wall (wallHit)
|
-- jump if on ground (coyotevalue) or if 0
|
||||||
if Keybind:CheckDown(Keybind.move.jump) then
|
if Keybind:CheckPressed(Keybind.move.jump) then
|
||||||
if self.coyoteValue > 0 then
|
if self.coyoteValue > 0 then
|
||||||
self.vel.y = -self.jumpImpulse
|
self.vel.y = -self.jumpImpulse
|
||||||
self.coyoteValue = 0
|
self.coyoteValue = 0
|
||||||
|
|
4
main.lua
4
main.lua
|
@ -50,8 +50,8 @@ function love.load()
|
||||||
|
|
||||||
main_Player = Player:New(75,50)
|
main_Player = Player:New(75,50)
|
||||||
|
|
||||||
Kupo:New(100,150)
|
--Kupo:New(100,150)
|
||||||
Kupo:New(300,150)
|
--Kupo:New(300,150)
|
||||||
HookAnchor:New(200,89)
|
HookAnchor:New(200,89)
|
||||||
HookAnchor:New(400,89)
|
HookAnchor:New(400,89)
|
||||||
Fairy:New(200,88)
|
Fairy:New(200,88)
|
||||||
|
|
Loading…
Reference in New Issue