修正cc切20G的部分代码(跟上方块对象结构更新)
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
4deepShape
|
4deepShape
|
||||||
BlockedWells
|
BlockedWells
|
||||||
]]
|
]]
|
||||||
local int,ceil,min,abs,rnd=math.floor,math.ceil,math.min,math.abs,math.random
|
local int,ceil,min,abs,rnd,modf=math.floor,math.ceil,math.min,math.abs,math.random,math.modf
|
||||||
local ins,rem=table.insert,table.remove
|
local ins,rem=table.insert,table.remove
|
||||||
-- controlname:
|
-- controlname:
|
||||||
-- 1~5:mL,mR,rR,rL,rF,
|
-- 1~5:mL,mR,rR,rL,rF,
|
||||||
@@ -79,8 +79,7 @@ if _CC then
|
|||||||
P.holdTime=P.gameEnv.holdCount
|
P.holdTime=P.gameEnv.holdCount
|
||||||
|
|
||||||
P.cur=rem(P.nextQueue,1)
|
P.cur=rem(P.nextQueue,1)
|
||||||
P.cur.sc,P.cur.dir=SCS[P.cur.id][0],0--TODO
|
P.curX,P.curY=blockPos[P.cur.id],int(P.gameEnv.fieldH+1-modf(P.cur.sc[1]))+ceil(P.fieldBeneath/30)
|
||||||
P.curX,P.curY=blockPos[P.cur.id],21+ceil(P.fieldBeneath/30)-#P.cur.bk+min(int(#P.field*.2),2)
|
|
||||||
|
|
||||||
P:newNext()
|
P:newNext()
|
||||||
local id=CCblockID[P.nextQueue[P.AIdata.next].id]
|
local id=CCblockID[P.nextQueue[P.AIdata.next].id]
|
||||||
|
|||||||
Reference in New Issue
Block a user