- Pos m'he passat tant de rato mirant el bug del CCAE i peleant en la IA que ja no se que he fet.

This commit is contained in:
2025-06-27 13:58:17 +02:00
parent ee951a9630
commit 1dee667dfc
4 changed files with 23 additions and 7 deletions

View File

@@ -109,20 +109,19 @@ sprites = {
elseif spr.state == templates.DYING then
if spr.animation ~= "mummy_dying" then
sprites.set_animation(spr, "mummy_dying")
--spr.animation = "mummy_dying"
--spr.current_frame = 1
else
if spr.current_frame == 8 then
sprites.set_animation(spr, "mummy_dead")
--spr.animation = "mummy_dead"
--spr.current_frame = 1
spr.state = templates.DEAD
print("DEAD") -- [TOFIX]
end
end
elseif spr.state == templates.DEAD then
-- [TODO]
if spr.current_wait == 1 then
sprites.set_animation(spr, "mummy_undying")
spr.state = templates.RESURRECTING
end
elseif spr.state == templates.RESURRECTING then
if spr.current_frame == 13 then
sprites.set_animation(spr, "mummy_walk")
spr.state = templates.ALIVE
end