代码规范:把所有的tab换成空格
This commit is contained in:
@@ -1,48 +1,48 @@
|
||||
local gc=love.graphics
|
||||
local warnTime={60,90,105,115,116,117,118,119,120}
|
||||
return{
|
||||
color=COLOR.lGray,
|
||||
env={
|
||||
noTele=true,
|
||||
minarr=1,minsdarr=1,
|
||||
drop=60,lock=60,
|
||||
fall=20,
|
||||
task=function(P)
|
||||
P.modeData.stage=1
|
||||
while true do
|
||||
YIELD()
|
||||
if P.stat.frame/60>=warnTime[P.modeData.stage]then
|
||||
if P.modeData.stage<9 then
|
||||
P.modeData.stage=P.modeData.stage+1
|
||||
SFX.play('ready',.7+P.modeData.stage*.03)
|
||||
else
|
||||
SFX.play('start')
|
||||
P:win('finish')
|
||||
return
|
||||
end
|
||||
end
|
||||
end
|
||||
end,
|
||||
bg='fan',bgm='memory',
|
||||
},
|
||||
slowMark=true,
|
||||
mesDisp=function(P)
|
||||
gc.setLineWidth(2)
|
||||
gc.rectangle('line',55,110,32,402)
|
||||
local T=P.stat.frame/60/120
|
||||
gc.setColor(2*T,2-2*T,.2)
|
||||
gc.rectangle('fill',56,511,30,(T-1)*400)
|
||||
end,
|
||||
score=function(P)return{P.stat.score}end,
|
||||
scoreDisp=function(D)return tostring(D[1])end,
|
||||
comp=function(a,b)return a[1]>b[1]end,
|
||||
getRank=function(P)
|
||||
local T=P.stat.score
|
||||
return
|
||||
T>=62000 and 5 or
|
||||
T>=50000 and 4 or
|
||||
T>=26000 and 3 or
|
||||
T>=10000 and 2 or
|
||||
T>=6200 and 1
|
||||
end,
|
||||
color=COLOR.lGray,
|
||||
env={
|
||||
noTele=true,
|
||||
minarr=1,minsdarr=1,
|
||||
drop=60,lock=60,
|
||||
fall=20,
|
||||
task=function(P)
|
||||
P.modeData.stage=1
|
||||
while true do
|
||||
YIELD()
|
||||
if P.stat.frame/60>=warnTime[P.modeData.stage]then
|
||||
if P.modeData.stage<9 then
|
||||
P.modeData.stage=P.modeData.stage+1
|
||||
SFX.play('ready',.7+P.modeData.stage*.03)
|
||||
else
|
||||
SFX.play('start')
|
||||
P:win('finish')
|
||||
return
|
||||
end
|
||||
end
|
||||
end
|
||||
end,
|
||||
bg='fan',bgm='memory',
|
||||
},
|
||||
slowMark=true,
|
||||
mesDisp=function(P)
|
||||
gc.setLineWidth(2)
|
||||
gc.rectangle('line',55,110,32,402)
|
||||
local T=P.stat.frame/60/120
|
||||
gc.setColor(2*T,2-2*T,.2)
|
||||
gc.rectangle('fill',56,511,30,(T-1)*400)
|
||||
end,
|
||||
score=function(P)return{P.stat.score}end,
|
||||
scoreDisp=function(D)return tostring(D[1])end,
|
||||
comp=function(a,b)return a[1]>b[1]end,
|
||||
getRank=function(P)
|
||||
local T=P.stat.score
|
||||
return
|
||||
T>=62000 and 5 or
|
||||
T>=50000 and 4 or
|
||||
T>=26000 and 3 or
|
||||
T>=10000 and 2 or
|
||||
T>=6200 and 1
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user