自定义游戏高级设置加入新增功能,最高场地高度机制微调,增加可视化

This commit is contained in:
MrZ626
2021-05-13 14:47:17 +08:00
parent a04438dbf8
commit 70408e4a2e
11 changed files with 97 additions and 65 deletions

View File

@@ -277,7 +277,7 @@ function Player:garbageRise(color,amount,line)--Release n-lines garbage to field
_=self.dropFX[i]
_[3],_[5]=_[3]+amount,_[5]+amount
end
if #self.field>self.gameEnv.fieldH+self.gameEnv.maxOver then self:lose()end
if #self.field>self.gameEnv.heightLimit then self:lose()end
end
local invList={2,1,4,3,5,6,7}
@@ -1444,6 +1444,9 @@ do--Player.drop(self)--Place piece
end
end
--Check height limit
if cc==0 and #self.field>ENV.heightLimit then self:lose()end
--Update stat
Stat.score=Stat.score+cscore
Stat.piece=Stat.piece+1