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

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

@@ -3,9 +3,9 @@ local function check_rise(P)
if #P.clearedRow==0 then
if L>0 then
if L<3 then
P:showTextF(text.almost,0,-120,80,"beat",.8)
P:showTextF(text.almost,0,-120,80,'beat',.8)
elseif L<5 then
P:showTextF(text.great,0,-120,80,"fly",.8)
P:showTextF(text.great,0,-120,80,'fly',.8)
end
end
for _=1,8-L do
@@ -13,8 +13,8 @@ local function check_rise(P)
end
else
if L==0 then
P:showTextF(text.awesome,0,-120,80,"beat",.6)
SFX.play("clear")
P:showTextF(text.awesome,0,-120,80,'beat',.6)
SFX.play('clear')
BG.send(26)
for _=1,8 do
P:garbageRise(13,1,generateLine(P:RND(10)))
@@ -32,7 +32,7 @@ return{
infHold=true,
dropPiece=check_rise,
pushSpeed=1.2,
bg="wing",bgm="dream",
bg='wing',bgm='dream',
},
load=function()
PLY.newPlayer(1)