整理代码

This commit is contained in:
MrZ626
2021-03-05 15:31:58 +08:00
parent 15ecee6767
commit 38f5ec6393
24 changed files with 41 additions and 40 deletions

View File

@@ -14,37 +14,37 @@ local skip
local loadingThread=coroutine.create(function()
for _=1,VOC.getCount()do
VOC.loadOne()
if _%3==0 then coroutine.yield()end
if _%3==0 then YIELD()end
end
progress=1
for i=1,BGM.getCount()do
BGM.loadOne()
if i%2==0 then coroutine.yield()end
if i%2==0 then YIELD()end
end
progress=2
for i=1,SFX.getCount()do
SFX.loadOne()
if i%2==0 then coroutine.yield()end
if i%2==0 then YIELD()end
end
progress=3
for i=1,IMG.getCount()do
IMG.loadOne()
if i%2==0 then coroutine.yield()end
if i%2==0 then YIELD()end
end
progress=4
for i=1,SKIN.getCount()do
SKIN.loadOne()
if i%2==0 then coroutine.yield()end
if i%2==0 then YIELD()end
end
progress=5
for i=1,17 do
getFont(15+5*i)
if i%3==0 then coroutine.yield()end
if i%3==0 then YIELD()end
end
progress=6
@@ -58,7 +58,7 @@ local loadingThread=coroutine.create(function()
M.records=FILE.load("record/"..m.name..".rec")or M.score and{}
-- M.icon=gc.newImage("media/image/modeIcon/"..m.icon..".png")
-- M.icon=gc.newImage("media/image/modeIcon/custom.png")
if i%5==0 then coroutine.yield()end
if i%5==0 then YIELD()end
end
progress=7
@@ -118,7 +118,7 @@ local loadingThread=coroutine.create(function()
VOC.play("welcome_voc")
return
end
coroutine.yield()
YIELD()
end
end)