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

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

@@ -9,7 +9,7 @@ return{
fall=20,
task=function(P)
local _=P.modeData.counter+1
if P.stat.time>=warnTime[_]then
if P.stat.frame>=warnTime[_]then
if _<9 then
P.modeData.counter=_
SFX.play("ready",.7+_*.03)
@@ -30,7 +30,7 @@ return{
mesDisp=function(P)
gc.setLineWidth(2)
gc.rectangle("line",55,190,32,402)
local T=P.stat.time/120
local T=P.stat.frame/7200
gc.setColor(2*T,2-2*T,.2)
gc.rectangle("fill",56,591,30,(T-1)*400)
end,