arm小程序删除答错自动清空

整理代码 框架跟进
This commit is contained in:
MrZ_26
2023-08-11 18:29:30 +08:00
parent 540099a944
commit 3fbff37095
27 changed files with 149 additions and 157 deletions

View File

@@ -1,5 +1,5 @@
local gc=love.graphics
local int,rnd,abs,sin,cos=math.floor,math.random,math.abs,math.sin,math.cos
local floor,rnd,abs,sin,cos=math.floor,math.random,math.abs,math.sin,math.cos
local pow,ang
local state,timer,score,combo
@@ -61,7 +61,7 @@ function scene.update()
end
if x>1280 or y>720 then
if score>0 then
score=score-int(score/10)
score=score-floor(score/10)
end
SFX.play('finesseError')
combo=0
@@ -110,7 +110,7 @@ function scene.draw()
gc.setColor(1,1,.6)
gc.print("x"..combo,300,80)
end
gc.setColor(COLOR[scoreColor[int(score/20)+1] or 'D'])
gc.setColor(COLOR[scoreColor[floor(score/20)+1] or 'D'])
gc.print(score,300,30)
-- Cannon ball