split freshBlock into 4 methods

This commit is contained in:
Imple Lee
2023-11-20 23:36:38 +08:00
parent 074cefed5d
commit ea3fb8d09e
5 changed files with 60 additions and 55 deletions

View File

@@ -170,7 +170,7 @@ do
},-- T
function(P,d)
if P.gameEnv.easyFresh then
P:freshBlock('fresh')
P:freshBlockDelay()
end
if P.gameEnv.ospin then
local x,y=P.curX,P.curY
@@ -203,7 +203,7 @@ do
C.dir=dir
P.spinLast=2
P.stat.rotate=P.stat.rotate+1
P:freshBlock('move')
P:freshMoveBlock()
C.spinSeq=nil
return
end
@@ -681,7 +681,7 @@ do
local t=P.freshTime
if not ifpre then
P:freshBlock('move')
P:freshMoveBlock()
end
if fdy>0 and P.freshTime==t and P.curY~=P.imgY then
P.freshTime=P.freshTime-1