整理代码,跟进之前的整理玩家方法

This commit is contained in:
MrZ626
2021-08-25 14:01:11 +08:00
parent 4c18629cd7
commit 179ff9b10a
2 changed files with 6 additions and 6 deletions

View File

@@ -74,9 +74,11 @@ function Player:clearLockFX()
end
end
function Player:createDropFX()
local CB=self.cur.bk
if self.gameEnv.dropFX and self.gameEnv.block and self.curY-self.ghoY-#CB>-1 then
ins(self.dropFX,{self.curX,self.curY-1,#CB[1],self.curY-self.ghoY-#CB+1,0,13-2*self.gameEnv.dropFX})
if self.gameEnv.dropFX and self.gameEnv.block then
local CB=self.cur.bk
if self.curY-self.ghoY+1>#CB then
ins(self.dropFX,{self.curX,self.curY-1,#CB[1],self.curY-self.ghoY-#CB+1,0,13-2*self.gameEnv.dropFX})
end
end
end
function Player:createMoveFX(moveDir)