New part in Zframework
This commit is contained in:
13
Zframework/testing.lua
Normal file
13
Zframework/testing.lua
Normal 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
|
||||
Reference in New Issue
Block a user