- [NEW] taulells que es trenquen i cauen

This commit is contained in:
2026-02-25 20:17:19 +01:00
parent a7fb3d5c22
commit 5bf2a5391a
4 changed files with 52 additions and 1 deletions

View File

@@ -52,6 +52,21 @@ templates = {
light_oy = 4,
ia = sprites.update_coin
}
elseif type == "brick" then
sprite = {
type = type,
pos = options.pos,--{ x=100, y=4*12*8+71 },
size = { w=8,h=8 },
bbo = { left=0, top=0, right=0, bottom=0 },
current_frame = 1,
current_wait = 1,
flipped = options.flipped,
surf = surf.load("misc.gif"),
animation = "brick",
state = templates.ALIVE,
timeout = 10,
ia = sprites.update_brick
}
else
error("Template not recognized")
end