- Ara es pot usar el gamepad per a tot

This commit is contained in:
2023-02-10 19:06:26 +01:00
parent 5c3e01d3e4
commit a3ca7bec86
4 changed files with 39 additions and 10 deletions

View File

@@ -19,7 +19,7 @@ function intro_intro()
--text("JAILGAMES",40,30,15)
text("presenta",48,50,14)
intro_wait=intro_wait-1
if intro_wait==0 or btnp(KEY_ESCAPE) or btnp(keyShoot) or padp(btnShoot) then
if intro_wait==0 or btnp(KEY_ESCAPE) or btnp(keyShoot) or padp(btnShoot) or padp(btnPause) then
intro_wait=1
game_update = intro_update
fade.fadeoutin()
@@ -30,7 +30,7 @@ function intro_intro()
end
function intro_update()
if btnp(KEY_ESCAPE) then
if btnp(KEY_ESCAPE) or padp(btnPause) then
game_init(true)
fade.fadeoutin()
elseif btnp(KEY_SPACE) then