整理代码习惯,常量字符串改用单引号,可能有遗漏

This commit is contained in:
MrZ626
2021-04-30 01:00:22 +08:00
parent 7676f32cf2
commit eda6c0d746
213 changed files with 2503 additions and 2499 deletions

View File

@@ -33,7 +33,7 @@ function back.update(dt)
if time>1 then
local x,y,color=F.x,F.y,F.color
if F.big then
SFX.play("fall",.5)
SFX.play('fall',.5)
for _=1,rnd(62,126)do
ins(particle,{
x=x,y=y,
@@ -44,7 +44,7 @@ function back.update(dt)
})
end
else
SFX.play("clear_1",.4)
SFX.play('clear_1',.4)
for _=1,rnd(16,26)do
ins(particle,{
x=x,y=y,
@@ -76,12 +76,12 @@ function back.update(dt)
end
function back.draw()
gc.clear(.1,.1,.1)
gc.push("transform")
gc.push('transform')
gc.origin()
for i=1,#firework do
local F=firework[i]
gc.setColor(F.color)
circle("fill",F.x,F.y,F.big and 8 or 4)
circle('fill',F.x,F.y,F.big and 8 or 4)
end
gc.setLineWidth(3)
for i=1,#particle do