新增模式环境变量maxOver,允许超屏最大高度可以调整
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
wait:出块延迟(帧)
|
||||
fall:下落延迟(帧)
|
||||
bone:是否开启骨块模式
|
||||
fieldH:场地高度
|
||||
maxOver:允许最大超出场地高度
|
||||
nextCount:显示next个数
|
||||
nextStartPos:next从第几个开始显示
|
||||
holdCount:hold个数
|
||||
|
||||
@@ -31,7 +31,7 @@ return{
|
||||
drop=60,lock=60,
|
||||
wait=0,fall=0,
|
||||
bone=false,
|
||||
fieldH=20,
|
||||
fieldH=20,maxOver=20,
|
||||
nextCount=6,nextStartPos=1,
|
||||
holdCount=1,infHold=false,phyHold=false,
|
||||
ospin=true,deepDrop=false,
|
||||
|
||||
@@ -275,7 +275,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>42 then self:lose()end
|
||||
if #self.field>self.gameEnv.fieldH+self.gameEnv.maxOver then self:lose()end
|
||||
end
|
||||
|
||||
local invList={2,1,4,3,5,6,7}
|
||||
|
||||
Reference in New Issue
Block a user