- [NEW] Claus i portes funcionant

This commit is contained in:
2026-03-09 13:46:51 +01:00
parent f2a52570b1
commit 12b322ab6b
15 changed files with 203 additions and 36 deletions

View File

@@ -2,14 +2,21 @@ score = {
points = 0,
color = 28,
zoom = 1,
surf = nil,
init = function()
score.points = 0
score.surf = surf.load("sprites.gif")
end,
draw = function()
draw.rectf(0,0,160,8,1)
draw.text(string.format("%03d", score.points),0,0,score.color)
draw.text(string.format("%03d", score.points),1,1,score.color)
surf.source(score.surf)
if sprites.hero.keys["verda"] then draw.surf(16,48,16,8, 32,-1) end
if sprites.hero.keys["groga"] then draw.surf(16,56,16,8, 32,-1) end
if sprites.hero.keys["roja"] then draw.surf(32,48,16,8, 32,-1) end
if sprites.hero.keys["blava"] then draw.surf(32,56,16,8, 32,-1) end
end,
inc = function(value)