修改堆叠模式玩法(自动清除之前记录)
修改更新历史和build号
This commit is contained in:
@@ -1,36 +1,25 @@
|
||||
local function getHoleCount(P)
|
||||
local hole=0
|
||||
for x=1,10 do
|
||||
for y=1,100 do
|
||||
if not P:solid(x,y)then
|
||||
hole=hole+1
|
||||
end
|
||||
end
|
||||
end
|
||||
return hole
|
||||
end
|
||||
return{
|
||||
color=COLOR.cyan,
|
||||
env={
|
||||
drop=60,lock=60,
|
||||
fieldH=100,
|
||||
highCam=true,
|
||||
fillClear=false,
|
||||
wait=0,fall=50,
|
||||
garbageSpeed=30,
|
||||
highCam=false,
|
||||
seqData={1,2,3,4,5,6,7},
|
||||
mesDisp=function(P)PLY.draw.drawTargetLine(P,100)end,
|
||||
eventSet='stack_100',
|
||||
bg='blockrain',bgm='there',
|
||||
},
|
||||
score=function(P)return{getHoleCount(P),P.stat.time}end,
|
||||
scoreDisp=function(D)return D[1].." Holes".." "..STRING.time(D[2])end,
|
||||
comp=function(a,b)return a[1]<b[1]or a[1]==b[1]and a[2]<b[2]end,
|
||||
score=function(P)return{P.stat.row,P.stat.time}end,
|
||||
scoreDisp=function(D)return D[1].." Lines".." "..STRING.time(D[2])end,
|
||||
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
|
||||
getRank=function(P)
|
||||
local H=getHoleCount(P)
|
||||
local L=P.stat.row
|
||||
return
|
||||
H==0 and 5 or
|
||||
H<=1 and 4 or
|
||||
H<=2 and 3 or
|
||||
H<=5 and 2 or
|
||||
H<=10 and 1 or
|
||||
H<=26 and 0
|
||||
L>=200 and 5 or
|
||||
L>=180 and 4 or
|
||||
L>=160 and 3 or
|
||||
L>=130 and 2 or
|
||||
L>=100 and 1 or
|
||||
L>=70 and 0
|
||||
end,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user