- [NEW] Claus i portes funcionant
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user