- 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,34 +9,34 @@ function final_init()
game_update=update_final
next_actor()
playmus(audio_final)
local r,g,b=palcolor(15)
palcolor(17,r,g,b)
local r,g,b=pal.color(15)
pal.color(17,r,g,b)
--fade.fadein()
end
go_next_actor=false
function update_final()
cls(16)
surf.cls(16)
camera(-16,-41)
view.origin(16,41)
mapa_draw(final_room)
draw_actor()
camera(0,0)
view.origin(0,0)
rectfill(0,0,14,96,16)
rectfill(114,0,191,96,16)
rect(15,40,113,89,2)
draw.rectf(0,0,15,97,16)
draw.rectf(114,0,78,97,16)
draw.rect(15,40,99,50,2)
text("C A C A U S", 42, 12, 17)
text(actor.name, 64-(#actor.name*2), 28, 11)
mapa_update(abad.hab,final_room)
if btnp(KEY_M) then
if key.press(key.M) then
mute = not mute
if mute then
stopmusic()
music.stop()
else
playmus(audio_final)
end
@@ -92,7 +92,7 @@ function draw_actor()
end
end
local tpl=128/actor.w
blit((actor.frame%tpl)*actor.w,math.floor(actor.frame/tpl)*actor.h,actor.w,actor.h,actor.x,actor.y,actor.w,actor.h,actor.flip)
draw.surf((actor.frame%tpl)*actor.w,math.floor(actor.frame/tpl)*actor.h,actor.w,actor.h,actor.x,actor.y,actor.w,actor.h,actor.flip)
end
function next_actor()
@@ -136,21 +136,21 @@ function next_actor()
end
function update_final2()
cls(16)
surf.cls(16)
text("C A C A U S", 42, 12, 17)
text("GRACIES PER JUGAR", 30, 48, 10)
if btnp(KEY_M) then
if key.press(key.M) then
mute = not mute
if mute then
stopmusic()
music.stop()
else
playmus(audio_final)
end
end
final_count=final_count+1
if final_count==200 or (btnp(keyShoot) or padp(btnShoot)) or btnp(KEY_RETURN) then
if final_count==200 or (key.press(keyShoot) or pad.press(btnShoot)) or key.press(key.RETURN) then
game_exit()
game_init(true)
fade.fadeoutin()