[FIX] Canviat el nom de flow a states que es mes precis
[FIX] Ajustada posició del peu en habitació 27 [FIX] Modificat trigger_event per a que es disparen en una habitació concreta i també segons distancia sense haver de colisionar [FIX] Ending stage 1 [FIX] ELiminades llunes duplicades [NEW] Dialeg per a l'abad
This commit is contained in:
+7
-7
@@ -2,7 +2,7 @@ local menu_sel = 0
|
||||
|
||||
function opcions_init()
|
||||
-- flow:add_path({opcions_show, opcions_end})
|
||||
flow:next()
|
||||
states:next()
|
||||
end
|
||||
|
||||
function opcions_draw()
|
||||
@@ -27,14 +27,14 @@ function opcions_update()
|
||||
elseif menu_sel==2 then
|
||||
-- menu_count=0
|
||||
-- menu_state=update_redefine_keys_menu
|
||||
flow:executar("opcions_teclat", true)
|
||||
states:executar("opcions_teclat", true)
|
||||
elseif menu_sel==3 then
|
||||
-- menu_count=0
|
||||
-- menu_state=update_redefine_pad_menu
|
||||
flow:executar("opcions_gamepad", true)
|
||||
states:executar("opcions_gamepad", true)
|
||||
else
|
||||
-- Tornar
|
||||
flow:next()
|
||||
states:next()
|
||||
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
|
||||
@@ -44,7 +44,7 @@ function opcions_update()
|
||||
if menu_sel==-1 then menu_sel=4 end
|
||||
elseif key.press(key.ESCAPE) or pad.press(btnPause) then
|
||||
-- Tornar desde qualsevol lloc
|
||||
flow:next()
|
||||
states:next()
|
||||
end
|
||||
end
|
||||
|
||||
@@ -56,7 +56,7 @@ end
|
||||
function opcions_end()
|
||||
print("opcions_end")
|
||||
-- flow:restore()
|
||||
flow:finish()
|
||||
states:finish()
|
||||
end
|
||||
|
||||
flow:registrar("opcions",{opcions_init, opcions_show, opcions_end})
|
||||
states:registrar("opcions",{opcions_init, opcions_show, opcions_end})
|
||||
|
||||
Reference in New Issue
Block a user