自定义游戏高级设置加入新增功能,最高场地高度机制微调,增加可视化
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user