[NEW] Veu de l'imp

[NEW] Afegits cacaus desapareguts en la intro
This commit is contained in:
2026-04-04 12:55:33 +02:00
parent 42b4638567
commit e4fe812e4a
10 changed files with 195 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
local abad={x=0,y=0,w=32,h=32,dx=88,dy=48,dw=32,dh=32}
local batman={x=0,y=96,w=32,h=32,dx=164,dy=48,dw=32,dh=32}
local cacaus={x=224,y=176,w=32,h=16,dx=152,dy=64,dw=32,dh=16}
local cacaus_trans={x=192,y=176,w=16,h=8,dx=65,dy=56,dw=16,dh=8}
local marc={x=30,y=6,w=198,h=102,color=2}
local pas_porta={x=146,y=48,w=14,h=32,color=16}
local scene_x_offset = 32
@@ -25,6 +26,8 @@ function draw_item_intro( name, flip )
draw.surf(batman.x, batman.y, batman.w, batman.h, batman.dx, batman.dy, batman.dw, batman.dh, flip)
elseif (name == "cacaus" ) then
draw.surf(cacaus.x, cacaus.y, cacaus.w, cacaus.h, cacaus.dx, cacaus.dy, cacaus.dw, cacaus.dh, flip)
elseif (name == "cacaus trans" ) then
draw.surf(cacaus_trans.x, cacaus_trans.y, cacaus_trans.w, cacaus_trans.h, cacaus_trans.dx, cacaus_trans.dy, cacaus_trans.dw, cacaus_trans.dh, flip)
elseif (name == "marc" ) then
draw.rect(marc.x, marc.y, marc.w, marc.h, marc.color)
elseif (name == "pas porta" ) then
@@ -82,7 +85,8 @@ function intro_update()
-- STEP 2
elseif intro_step==2 then
draw_escenari()
draw_item_intro("abad", false)
draw_item_intro("abad", true)
draw_item_intro("cacaus trans", false)
view.origin(0,0)
intro_step=intro_step+1
-- STEP 3