Task模块全部改用协程
This commit is contained in:
@@ -23,11 +23,14 @@ return{
|
||||
freshLimit=15,
|
||||
dropPiece=score,
|
||||
task=function(P)
|
||||
while true do
|
||||
coroutine.yield()
|
||||
if P.stat.frame>=53.5*60 then
|
||||
P.modeData.point=min(P.modeData.point+16,80)
|
||||
P.modeData.event=sectionName[int(P.modeData.point*.1)+1]
|
||||
P:win("finish")
|
||||
return true
|
||||
P.modeData.point=min(P.modeData.point+16,80)
|
||||
P.modeData.event=sectionName[int(P.modeData.point*.1)+1]
|
||||
P:win("finish")
|
||||
return
|
||||
end
|
||||
end
|
||||
end,
|
||||
bg="tunnel",bgm="far",
|
||||
|
||||
Reference in New Issue
Block a user