- 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:
@@ -70,7 +70,19 @@ animations = {
|
||||
["mummy_dead"] = {
|
||||
cycle = {1},
|
||||
frames = {
|
||||
{ frame={x=128,y=24,w=16,h=17}, wait=50 },
|
||||
{ frame={x=128,y=24,w=16,h=17}, wait=100 },
|
||||
}
|
||||
},
|
||||
["mummy_undying"] = {
|
||||
cycle = {7,6,7,6,7,6,7,6,5,4,3,2,1},
|
||||
frames = {
|
||||
{ frame={x=48,y=24,w=16,h=17}, wait=2 },
|
||||
{ frame={x=64,y=24,w=16,h=17}, wait=2 },
|
||||
{ frame={x=80,y=24,w=16,h=17}, wait=2 },
|
||||
{ frame={x=96,y=24,w=16,h=17}, wait=2 },
|
||||
{ frame={x=112,y=24,w=16,h=17}, wait=2 },
|
||||
{ frame={x=128,y=24,w=16,h=17}, wait=1 },
|
||||
{ frame={x=128,y=40,w=16,h=17}, wait=1 }
|
||||
}
|
||||
},
|
||||
}
|
||||
5
data/items.lua
Normal file
5
data/items.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
items = {
|
||||
["mummy"] = {
|
||||
|
||||
}
|
||||
}
|
||||
BIN
data/sprites.gif
BIN
data/sprites.gif
Binary file not shown.
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.7 KiB |
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user