直接放入Zframework文件

This commit is contained in:
MrZ_26
2023-12-04 20:02:12 +08:00
parent 8ee7a90eca
commit f38746ff96
36 changed files with 13120 additions and 0 deletions

18
Zframework/test.lua Normal file
View File

@@ -0,0 +1,18 @@
local yield=coroutine.yield
local TEST={}
-- Wait for the scene swapping animation to finish
function TEST.yieldUntilNextScene()
while SCN.swapping do yield() end
end
function TEST.yieldN(frames)
for _=1,frames do yield() end
end
function TEST.yieldT(timeout)
local t=0
repeat t=t+yield() until t>=timeout
end
return TEST