整理代码,移除主菜单ai角框,修复触屏在房间内会不能操作
This commit is contained in:
@@ -280,7 +280,7 @@ function update.alive(P,dt)
|
||||
if P.falling>=0 then
|
||||
P.falling=P.falling-1
|
||||
if P.falling>=0 then
|
||||
goto stop
|
||||
goto THROW_stop
|
||||
else
|
||||
local L=#P.clearingRow
|
||||
if P.sound and ENV.fall>0 and #P.field+L>P.clearingRow[L]then SFX.play('fall')end
|
||||
@@ -289,11 +289,11 @@ function update.alive(P,dt)
|
||||
end
|
||||
|
||||
--Try spawn new block
|
||||
if not P.control then goto stop end
|
||||
if not P.control then goto THROW_stop end
|
||||
if P.waiting>=0 then
|
||||
P.waiting=P.waiting-1
|
||||
if P.waiting<0 then P:popNext()end
|
||||
goto stop
|
||||
goto THROW_stop
|
||||
end
|
||||
|
||||
--Natural block falling
|
||||
@@ -302,7 +302,7 @@ function update.alive(P,dt)
|
||||
local D=P.dropDelay
|
||||
if D>1 then
|
||||
P.dropDelay=D-1
|
||||
goto stop
|
||||
goto THROW_stop
|
||||
end
|
||||
|
||||
if D==1 then
|
||||
@@ -335,14 +335,14 @@ function update.alive(P,dt)
|
||||
end
|
||||
else
|
||||
P.lockDelay=P.lockDelay-1
|
||||
if P.lockDelay>=0 then goto stop end
|
||||
if P.lockDelay>=0 then goto THROW_stop end
|
||||
P:drop()
|
||||
if P.AI_mode=='CC'and P.AI_bot then
|
||||
CC.updateField(P)
|
||||
end
|
||||
end
|
||||
end
|
||||
::stop::
|
||||
::THROW_stop::
|
||||
|
||||
--B2B bar animation
|
||||
if P.b2b1==P.b2b then
|
||||
|
||||
Reference in New Issue
Block a user