- final cutscenes finished
- fade system - minor changes to stairs graphic
This commit is contained in:
54
intro.lua
54
intro.lua
@@ -12,6 +12,7 @@ function intro_init()
|
||||
setsource(logo)
|
||||
sspr(0,0,36,5,28,35,72,10)
|
||||
setsource(tiles)
|
||||
fade.fadein()
|
||||
end
|
||||
|
||||
function intro_intro()
|
||||
@@ -19,15 +20,9 @@ function intro_intro()
|
||||
text("presenta",48,50,14)
|
||||
intro_wait=intro_wait-1
|
||||
if intro_wait==0 or btnp(KEY_ESCAPE) or btnp(KEY_SPACE) then
|
||||
cls(16)
|
||||
rect(15,3,113,53,2)
|
||||
camera(-16,-4)
|
||||
mapa_draw(10)
|
||||
rectfill(73,24,79,39,16)
|
||||
sspr(0,0,16,16,44,24,16,16,true)
|
||||
camera(0,0)
|
||||
intro_wait=40
|
||||
intro_wait=1
|
||||
_update = intro_update
|
||||
fade.fadeoutin()
|
||||
end
|
||||
if btnp(KEY_M) then
|
||||
mute = not mute
|
||||
@@ -35,10 +30,13 @@ function intro_intro()
|
||||
end
|
||||
|
||||
function intro_update()
|
||||
--print("intro_update")
|
||||
--play(audio_main_song)
|
||||
--game_init(true)
|
||||
if btnp(KEY_ESCAPE) then
|
||||
game_init(true)
|
||||
elseif btnp(KEY_SPACE) then
|
||||
intro_wait=1
|
||||
elseif btnp(KEY_M) then
|
||||
mute = not mute
|
||||
end
|
||||
@@ -46,9 +44,18 @@ function intro_update()
|
||||
intro_wait=intro_wait-1
|
||||
if intro_wait==0 then
|
||||
if intro_step==0 then
|
||||
start_scene(scenes.intro_01,58)
|
||||
intro_step=1
|
||||
cls(16)
|
||||
rect(15,3,113,53,2)
|
||||
camera(-16,-4)
|
||||
mapa_draw(10)
|
||||
rectfill(73,24,79,39,16)
|
||||
sspr(0,0,16,16,44,24,16,16,true)
|
||||
camera(0,0)
|
||||
intro_step=intro_step+1
|
||||
elseif intro_step==1 then
|
||||
start_scene(scenes.intro_01,58)
|
||||
intro_step=intro_step+1
|
||||
elseif intro_step==2 then
|
||||
cls(16)
|
||||
rect(15,3,113,53,2)
|
||||
camera(-16,-4)
|
||||
@@ -56,11 +63,11 @@ function intro_update()
|
||||
rectfill(73,24,79,39,16)
|
||||
sspr(0,0,16,16,44,24,16,16,false)
|
||||
camera(0,0)
|
||||
intro_step=2
|
||||
elseif intro_step==2 then
|
||||
start_scene(scenes.intro_02,58)
|
||||
intro_step=3
|
||||
intro_step=intro_step+1
|
||||
elseif intro_step==3 then
|
||||
start_scene(scenes.intro_02,58)
|
||||
intro_step=intro_step+1
|
||||
elseif intro_step==4 then
|
||||
cls(16)
|
||||
rect(15,3,113,53,2)
|
||||
camera(-16,-4)
|
||||
@@ -70,11 +77,11 @@ function intro_update()
|
||||
sspr(112,88,16,8,76,32,16,8,true)
|
||||
sspr(0,48,16,16,82,24,16,16,true)
|
||||
camera(0,0)
|
||||
intro_step=4
|
||||
elseif intro_step==4 then
|
||||
start_scene(scenes.intro_03,58)
|
||||
intro_step=5
|
||||
intro_step=intro_step+1
|
||||
elseif intro_step==5 then
|
||||
start_scene(scenes.intro_03,58)
|
||||
intro_step=intro_step+1
|
||||
elseif intro_step==6 then
|
||||
cls(16)
|
||||
rect(15,3,113,53,2)
|
||||
camera(-16,-4)
|
||||
@@ -82,14 +89,15 @@ function intro_update()
|
||||
rectfill(73,24,79,39,16)
|
||||
sspr(0,0,16,16,44,24,16,16,false)
|
||||
camera(0,0)
|
||||
intro_step=6
|
||||
elseif intro_step==6 then
|
||||
start_scene(scenes.intro_04,58)
|
||||
intro_step=7
|
||||
intro_step=intro_step+1
|
||||
elseif intro_step==7 then
|
||||
start_scene(scenes.intro_04,58)
|
||||
intro_step=intro_step+1
|
||||
elseif intro_step==8 then
|
||||
play(audio_main_song)
|
||||
game_init(true)
|
||||
fade.fadeoutin()
|
||||
end
|
||||
intro_wait=40
|
||||
intro_wait=50
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user