- [NEW] Més gràfics

- [NEW] Retocs en habitacions
This commit is contained in:
2026-03-26 17:46:32 +01:00
parent 8b33e35114
commit 5b4e4be005
8 changed files with 25 additions and 0 deletions

BIN
data/gfx/abad.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 347 B

BIN
data/gfx/paku.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -232,4 +232,12 @@ animations = {
{ 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 }
}
},
}

View File

@@ -18,4 +18,5 @@ items = {
{ 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="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} },
}

View File

@@ -262,6 +262,22 @@ function me.create(type, options)
room = options.room,
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
error("Template not recognized")
end