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

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

@@ -11,12 +11,12 @@ return{
PLY.newPlayer(1,340,15)
PLY.newAIPlayer(2,965,360,.5,AIBUILDER("CC",7,3,true,50000))
end,
score=function(P)return{P.stat.time}end,
score=function(P)return{P.stat.frame/60}end,
scoreDisp=function(D)return toTime(D[1])end,
comp=function(a,b)return a[1]<b[1]end,
getRank=function(P)
if P.result=="WIN"then
local T=P.stat.time
local T=P.stat.frame/60
return
T<=80 and 5 or
T<=110 and 4 or