代码整理

This commit is contained in:
MrZ626
2020-08-23 00:16:30 +08:00
parent 8c7e2da69a
commit 4786ab59b0

View File

@@ -2584,14 +2584,16 @@ function player.act.zangiRight(P)
P.act.hardDrop(P) P.act.hardDrop(P)
end end
--Give operations a num name --Give operations a num name
A=player.act do
T={ local A=player.act
A.moveLeft ,A.moveRight, A.rotRight, A.rotLeft, local T={
A.rot180 ,A.hardDrop, A.softDrop, A.hold, A.moveLeft ,A.moveRight, A.rotRight, A.rotLeft,
A.func ,A.restart, A.insLeft, A.insRight, A.rot180 ,A.hardDrop, A.softDrop, A.hold,
A.insDown ,A.down1, A.down4, A.down10, A.func ,A.restart, A.insLeft, A.insRight,
A.dropLeft ,A.dropRight, A.zangiLeft,A.zangiRight A.insDown ,A.down1, A.down4, A.down10,
}for i=1,20 do A[i]=T[i]end;A,T=nil A.dropLeft ,A.dropRight, A.zangiLeft,A.zangiRight
}for i=1,20 do A[i]=T[i]end
end
--------------------------</Control>-------------------------- --------------------------</Control>--------------------------
--------------------------<Generator>-------------------------- --------------------------<Generator>--------------------------