- [NEW] Més gràfics
- [NEW] Retocs en habitacions
BIN
data/gfx/abad.gif
Normal file
|
After Width: | Height: | Size: 347 B |
BIN
data/gfx/paku.gif
Normal file
|
After Width: | Height: | Size: 238 B |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
@@ -232,4 +232,12 @@ animations = {
|
|||||||
{ frame={x=56,y=0,w=8,h=8}, wait=100 }
|
{ frame={x=56,y=0,w=8,h=8}, wait=100 }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
["abad"] = {
|
||||||
|
cycle = {1,2},
|
||||||
|
loop = true,
|
||||||
|
frames = {
|
||||||
|
{ frame={x=16,y=0,w=16,h=18}, offset={flipped={x=0,y=-2}}, wait=2 },
|
||||||
|
{ frame={x=32,y=0,w=16,h=18}, offset={flipped={x=0,y=-2}}, wait=2 }
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
@@ -18,4 +18,5 @@ items = {
|
|||||||
{ name="rata", label="rata", visual={x=80, y=48, w=9, h=8} },
|
{ name="rata", label="rata", visual={x=80, y=48, w=9, h=8} },
|
||||||
{ name="gota", label="gota", visual={x=80, y=56, w=8, h=8} },
|
{ name="gota", label="gota", visual={x=80, y=56, w=8, h=8} },
|
||||||
{ name="berserk", label="berserk", visual={x=16, y=24, w=16, h=16} },
|
{ name="berserk", label="berserk", visual={x=16, y=24, w=16, h=16} },
|
||||||
|
{ name="abad", label="abad", visual={x=16, y=0, w=16, h=16} },
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -262,6 +262,22 @@ function me.create(type, options)
|
|||||||
room = options.room,
|
room = options.room,
|
||||||
ia = ia.update_berserk
|
ia = ia.update_berserk
|
||||||
}
|
}
|
||||||
|
elseif key == "abad" then
|
||||||
|
sprite = {
|
||||||
|
type = key,
|
||||||
|
pos = options.pos,--{ x=100, y=4*12*8+71 },
|
||||||
|
size = { w=16,h=18 },
|
||||||
|
bbo = { left=3, top=2, right=3, bottom=0 },
|
||||||
|
current_frame = 1,
|
||||||
|
current_wait = 1,
|
||||||
|
flipped = options.flipped,
|
||||||
|
surf = surf.load("gfx/abad.gif"),
|
||||||
|
animation = "abad",
|
||||||
|
state = me.ALIVE,
|
||||||
|
enemy = true,
|
||||||
|
room = options.room,
|
||||||
|
ia = ia.update_coin
|
||||||
|
}
|
||||||
else
|
else
|
||||||
error("Template not recognized")
|
error("Template not recognized")
|
||||||
end
|
end
|
||||||
|
|||||||