游戏内时间和真实时间独立计算

This commit is contained in:
MrZ626
2020-12-01 22:01:00 +08:00
parent e8d9cb74ad
commit 79e6477338
74 changed files with 121 additions and 116 deletions

View File

@@ -15,12 +15,12 @@ return{
mStr(r,69,335)
PLY.draw.drawTargetLine(P,r)
end,
score=function(P)return{P.stat.time,P.stat.piece}end,
score=function(P)return{P.stat.frame/60,P.stat.piece}end,
scoreDisp=function(D)return toTime(D[1]).." "..D[2].." Pieces"end,
comp=function(a,b)return a[1]<b[1]or a[1]==b[1]and a[2]<b[2]end,
getRank=function(P)
if P.stat.row<20 then return end
local T=P.stat.time
local T=P.stat.frame/60
return
T<=13 and 5 or
T<=18 and 4 or