- [CHG] Intercanviats botons de botar i disparar

- [NEW] cheats.showaabb
- [CHG] retocs en score
- [NEW] Autocompletar en la consola
This commit is contained in:
2026-02-24 22:17:46 +01:00
parent 7ba7fc04d6
commit a7fb3d5c22
4 changed files with 140 additions and 6 deletions

View File

@@ -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
}