- Passat a mini v1.3.6

This commit is contained in:
2025-10-30 12:39:44 +01:00
parent 5fef769534
commit a5d097aa50
26 changed files with 396 additions and 399 deletions

View File

@@ -9,14 +9,14 @@ intro_step=0
function intro_init()
game_update = intro_intro
intro_wait=400
cls(16)
setdest(logo)
cls(16)
prnt("JAILGAMES",0,0,15)
setdest(0)
setsource(logo)
blit(0,0,36,5,28,35,72,10)
setsource(tiles)
surf.cls(16)
surf.target(logo)
surf.cls(16)
draw.text("JAILGAMES",0,0,15)
surf.target(0)
surf.source(logo)
draw.surf(0,0,36,5,28,35,72,10)
surf.source(tiles)
fade.fadein()
end
@@ -24,74 +24,74 @@ 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) or padp(btnPause) then
if intro_wait==0 or key.press(key.ESCAPE) or key.press(keyShoot) or pad.press(btnShoot) or pad.press(btnPause) then
intro_wait=1
game_update = intro_update
fade.fadeoutin()
end
if btnp(KEY_M) then
if key.press(key.M) then
mute = not mute
end
end
function intro_update()
if btnp(KEY_ESCAPE) or padp(btnPause) then
if key.press(key.ESCAPE) or pad.press(btnPause) then
game_init(true)
fade.fadeoutin()
elseif btnp(KEY_SPACE) then
elseif key.press(key.SPACE) then
intro_wait=1
elseif btnp(KEY_M) then
elseif key.press(key.M) then
mute = not mute
end
intro_wait=intro_wait-1
if intro_wait==0 then
if intro_step==0 then
cls(16)
rect(15,3,113,53,2)
camera(-16,-4)
surf.cls(16)
draw.rect(15,3,99,51,2)
view.origin(16,4)
mapa_draw(10)
rectfill(73,24,79,39,16)
blit(0,0,16,16,44,24,16,16,true)
camera(0,0)
draw.rectf(73,24,7,16,16)
draw.surf(0,0,16,16,44,24,16,16,true)
view.origin(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)
surf.cls(16)
draw.rect(15,3,99,51,2)
view.origin(16,4)
mapa_draw(10)
rectfill(73,24,79,39,16)
blit(0,0,16,16,44,24,16,16,false)
camera(0,0)
draw.rectf(73,24,7,16,16)
draw.surf(0,0,16,16,44,24,16,16,false)
view.origin(0,0)
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)
surf.cls(16)
draw.rect(15,3,99,51,2)
view.origin(16,4)
mapa_draw(10)
rectfill(73,24,79,39,16)
blit(0,0,16,16,44,24,16,16,false)
blit(112,88,16,8,76,32,16,8,true)
blit(0,48,16,16,82,24,16,16,true)
camera(0,0)
draw.rectf(73,24,7,16,16)
draw.surf(0,0,16,16,44,24,16,16,false)
draw.surf(112,88,16,8,76,32,16,8,true)
draw.surf(0,48,16,16,82,24,16,16,true)
view.origin(0,0)
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)
surf.cls(16)
draw.rect(15,3,99,51,2)
view.origin(16,4)
mapa_draw(10)
rectfill(73,24,79,39,16)
blit(0,0,16,16,44,24,16,16,false)
camera(0,0)
draw.rectf(73,24,7,16,16)
draw.surf(0,0,16,16,44,24,16,16,false)
view.origin(0,0)
intro_step=intro_step+1
elseif intro_step==7 then
start_scene(scenes.intro_04,58)