[NEW] Afegit sistema de mood per a l'abad

This commit is contained in:
2026-04-05 00:33:21 +02:00
parent b2cb8698b4
commit 82ca7cb2b5
5 changed files with 104 additions and 27 deletions

View File

@@ -19,9 +19,11 @@ function draw_escenari ()
draw_item_intro("pas porta")
end
function draw_item_intro( name, flip )
function draw_item_intro( name, flip, mood )
if ( name == "abad" ) then
-- abad.mood = mood or "normal"
draw.surf(abad.x, abad.y, abad.w, abad.h, abad.dx, abad.dy, abad.dw, abad.dh, flip)
abad_add_mood(abad.dx,0,abad.dy,0,flip,mood)
elseif (name == "batman" ) then
draw.surf(batman.x, batman.y, batman.w, batman.h, batman.dx, batman.dy, batman.dw, batman.dh, flip)
elseif (name == "cacaus" ) then
@@ -73,7 +75,7 @@ function intro_update()
-- STEP 0
if intro_step==0 then
draw_escenari()
draw_item_intro("abad", true)
draw_item_intro("abad", false)
view.origin(0,0)
intro_step=intro_step+1
-- STEP 1
@@ -85,7 +87,7 @@ function intro_update()
-- STEP 2
elseif intro_step==2 then
draw_escenari()
draw_item_intro("abad", true)
draw_item_intro("abad", true, "sorpresa")
draw_item_intro("cacaus trans", false)
view.origin(0,0)
intro_step=intro_step+1