干掉所有的goto来测试love.js

This commit is contained in:
MrZ_26
2023-06-12 11:42:17 +08:00
parent 91adc0d153
commit 514f0a17b5
13 changed files with 265 additions and 212 deletions

View File

@@ -195,14 +195,17 @@ function scene.keyDown(key)
local F=FIELD[page]
local cleared=false
for i=#F,1,-1 do
local full
for j=1,10 do
if F[i][j]<=0 then goto CONTINUE_notFull end
if F[i][j]<=0 then full=false break end-- goto CONTINUE_notFull
end
cleared=true
SYSFX.newShade(3,200,660-30*i,300,30)
SYSFX.newRectRipple(3,200,660-30*i,300,30)
rem(F,i)
::CONTINUE_notFull::
if full then
cleared=true
SYSFX.newShade(3,200,660-30*i,300,30)
SYSFX.newRectRipple(3,200,660-30*i,300,30)
rem(F,i)
end
-- ::CONTINUE_notFull::
end
if cleared then
SFX.play('clear_3',.8)