Zframework的控件/场景/文本/任务模块支持基于时间更新

修改几处其他地方基于时间update
This commit is contained in:
MrZ626
2021-09-25 02:55:01 +08:00
parent 7ae314fb2c
commit 391821bf16
9 changed files with 121 additions and 101 deletions

View File

@@ -163,12 +163,12 @@ function scene.keyDown(key)
end
end
function scene.update()
function scene.update(dt)
if not LOADED then
loading=loadingThread()
progress=progress+1
else
t1,t2=t1+1,t2+1
t1,t2=t1+dt*60,t2+dt*60
end
end