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

@@ -15,13 +15,13 @@ return {
if P.cur and not P:ifoverlap(P.cur.bk,P.curX-1,P.curY) then
P:createMoveFX('left')
P.curX=P.curX-1
P:freshBlock('move')
P:freshMoveBlock()
end
elseif r==2 then
if P.cur and not P:ifoverlap(P.cur.bk,P.curX-1,P.curY) then
P:createMoveFX('left')
P.curX=P.curX-1
P:freshBlock('move')
P:freshMoveBlock()
end
elseif r==3 then
P:act_rotRight()