- [NEW] Sucubo acabat i funcionant

This commit is contained in:
2026-03-13 12:13:04 +01:00
parent 88de5f262b
commit a987fb330a
8 changed files with 81 additions and 16 deletions

View File

@@ -138,11 +138,26 @@ function me.create(type, options)
surf = surf.load("gfx/sucubo.gif"),
animation = "sucubo_stand",
state = me.ALIVE,
timer = 0,
timer = tonumber(value),
enemy = true,
room = options.room,
ia = ia.update_sucubo
}
elseif key == "palo" then
sprite = {
type = key,
pos = options.pos,--{ x=100, y=4*12*8+71 },
size = { w=16,h=6 },
bbo = { left=0, top=0, right=0, bottom=0 },
current_frame = 1,
current_wait = 1,
flipped = options.flipped,
surf = surf.load("gfx/misc.gif"),
animation = "palo",
dy = -4,
ay = 1,
ia = ia.update_palo
}
else
error("Template not recognized")
end