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

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

@@ -14,11 +14,11 @@ local function score(P)
D.pt=D.pt+s
if D.pt%100==99 then
SFX.play("blip_1")
SFX.play('blip_1')
elseif D.pt>=D.target then--Level up!
s=D.target/100
local E=P.gameEnv
BG.set(s==1 and"bg1"or s==2 and"bg2"or s==3 and"rainbow"or "rainbow2")
BG.set(s==1 and'bg1'or s==2 and'bg2'or s==3 and'rainbow'or 'rainbow2')
E.lock=rush_lock[s]
E.wait=rush_wait[s]
E.fall=rush_fall[s]
@@ -31,12 +31,12 @@ local function score(P)
if s==5 then
D.pt=500
P:win("finish")
P:win('finish')
else
D.target=D.target+100
P:showTextF(text.stage:gsub("$1",s),0,-120,80,"fly")
P:showTextF(text.stage:gsub("$1",s),0,-120,80,'fly')
end
SFX.play("reach")
SFX.play('reach')
end
end
@@ -55,7 +55,7 @@ return{
P.modeData.target=100
end,
freshLimit=15,
bg="bg1",bgm="secret8th",
bg='bg1',bgm='secret8th',
},
slowMark=true,
load=function()
@@ -65,7 +65,7 @@ return{
setFont(45)
mStr(P.modeData.pt,69,320)
mStr(P.modeData.target,69,370)
gc.rectangle("fill",25,375,90,4)
gc.rectangle('fill',25,375,90,4)
end,
score=function(P)return{P.modeData.pt,P.stat.time}end,
scoreDisp=function(D)return D[1].."P "..STRING.time(D[2])end,