- Now Up and Jump can be defined as different keys/buttons.

This commit is contained in:
2023-01-21 14:29:50 +01:00
parent 33af343c80
commit 3898289f57
3 changed files with 20 additions and 2 deletions

View File

@@ -87,7 +87,7 @@ function abad_state_normal()
elseif btn(keyLeft) or pad(btnLeft) then
abad.update=abad_state_walking
abad.flip=true
elseif btn(keyUp) or pad(btnUp) then
elseif btn(keyJump) or pad(btnJump) then
abad.update=abad_state_jumping
abad.step=0
abad.jumpfwd=false
@@ -185,7 +185,7 @@ function abad_state_walking()
abad_make_safe()
if btn(keyUp) or pad(btnUp) then
if btn(keyJump) or pad(btnJump) then
abad.update=abad_state_jumping
abad.step=0
abad.jumpfwd=true