[NEW] Afegit Intro per a sel·leccionar en el menú

This commit is contained in:
2026-05-10 22:26:46 +02:00
parent b1e27a722c
commit 100d41c576
3 changed files with 11 additions and 11 deletions
+9 -9
View File
@@ -420,22 +420,22 @@ function abad_state_normal()
abad_make_safe()
if controller:check("right") then
abad.update=abad_state_walking
abad.flip=false
elseif controller:check("up") and abad_in_stairs() then
if controller:check("up") and abad_in_stairs() then
abad.update=abad_state_stairs
elseif controller:check("left") then
abad.update=abad_state_walking
abad.flip=true
elseif controller:check("jump") then
abad_do_jump()
elseif controller:check("down") then
if abad_in_stairs() then
abad.update=abad_state_stairs
else
abad.update=abad_state_crouch
end
elseif controller:check("right") then
abad.update=abad_state_walking
abad.flip=false
elseif controller:check("left") then
abad.update=abad_state_walking
abad.flip=true
elseif controller:check("jump") then
abad_do_jump()
--elseif btn(KEY_Z) then
-- abad.respawning=240
elseif controller:check("shoot") then
+1 -1
View File
@@ -18,7 +18,7 @@ function opcions_draw()
end
function opcions_update()
if key.press(keyShoot) or key.press(key.SPACE) or pad.press(pad.A) or pad.press(btnShoot) then
if key.press(keyShoot) or key.press(key.SPACE) or pad.press(pad.A) or pad.press(btnShoot) or key.press(key.RETURN) then
if menu_sel==0 then
music.enabled(not music.enabled())
if music.enabled() then music.play(audio_main_song) end
+1 -1
View File
@@ -148,7 +148,7 @@ function title_menu_draw()
end
function title_menu_update()
if key.press(keyShoot) or key.press(key.SPACE) or pad.press(pad.A) or pad.press(btnShoot) then
if key.press(keyShoot) or key.press(key.SPACE) or pad.press(pad.A) or pad.press(btnShoot) or key.press(key.RETURN) then
title_end()
elseif key.press(keyDown) or key.press(key.DOWN) or pad.press(pad.DOWN) or pad.press(btnDown) then
menu_sel=menu_sel+1