- [CHG] Intercanviats botons de botar i disparar
- [NEW] cheats.showaabb - [CHG] retocs en score - [NEW] Autocompletar en la consola
This commit is contained in:
@@ -1,7 +1,20 @@
|
||||
score = {
|
||||
points = 0,
|
||||
color = 28,
|
||||
zoom = 1,
|
||||
|
||||
init = function()
|
||||
score.points = 0
|
||||
end,
|
||||
|
||||
draw = function()
|
||||
draw.rectf(0,0,160,8,1)
|
||||
draw.text(string.format("%03d", score.points),0,0,28)
|
||||
draw.text(string.format("%03d", score.points),0,0,score.color)
|
||||
end,
|
||||
|
||||
inc = function(value)
|
||||
print("score.inc()")
|
||||
score.points = score.points + value
|
||||
tweening.add(8, 0, 0.5, easing.linear, function(val,progress,finished) score.color = (math.floor(val)&1) == 0 and 28 or 14 end)
|
||||
end
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user