New part in Zframework

This commit is contained in:
Trebor-Huang
2021-11-01 10:14:09 +08:00
parent 3ae128d4c3
commit c009893377
3 changed files with 20 additions and 5 deletions

13
Zframework/testing.lua Normal file
View File

@@ -0,0 +1,13 @@
--Utils for testing
local testing={}
--Wait for the scene swapping animation to finish
function testing.switchSCN()
while SCN.swapping do YIELD()end
end
function testing.sleep(frames)
for _=1,frames do YIELD()end
end
return testing