- Primer 'redo' de part del codi
- Afegida la pantalla de titol
This commit is contained in:
@@ -33,26 +33,33 @@ function draw_item_intro( name, flip )
|
||||
end
|
||||
|
||||
function intro_init()
|
||||
game_update = intro_intro
|
||||
print("INTRO_INIT")
|
||||
-- game_update = intro_intro
|
||||
intro_wait=400
|
||||
surf.source(tiles)
|
||||
surf.target(0)
|
||||
surf.cls(16)
|
||||
fade.fadein()
|
||||
font.current(font_sf)
|
||||
flow:add_path({intro_intro, intro_update})
|
||||
flow:next()
|
||||
end
|
||||
|
||||
function intro_intro()
|
||||
intro_wait=1
|
||||
game_update = intro_update
|
||||
-- game_update = intro_update
|
||||
flow:next()
|
||||
fade.fadeoutin()
|
||||
end
|
||||
|
||||
function intro_update()
|
||||
|
||||
if key.press(key.ESCAPE) or pad.press(btnPause) then
|
||||
game_init(true)
|
||||
fade.fadeoutin()
|
||||
-- game_init(true)
|
||||
print("INTRO_UPDATE")
|
||||
-- game_update = menu_init
|
||||
-- game_init(true)
|
||||
intro_end()
|
||||
elseif key.press(key.SPACE) then
|
||||
intro_wait=1
|
||||
end
|
||||
@@ -112,9 +119,16 @@ function intro_update()
|
||||
-- STEP 8
|
||||
elseif intro_step==8 then
|
||||
music.play(audio_main_song)
|
||||
game_init(true)
|
||||
fade.fadeoutin()
|
||||
-- game_init(true)
|
||||
-- game_update = menu_init
|
||||
intro_end()
|
||||
end
|
||||
intro_wait=50
|
||||
end
|
||||
end
|
||||
|
||||
function intro_end()
|
||||
print("intro_end")
|
||||
fade.fadeoutin()
|
||||
flow:next()
|
||||
end
|
||||
Reference in New Issue
Block a user