新增三个堆叠模式 close #142
This commit is contained in:
26
parts/modes/stack_20l.lua
Normal file
26
parts/modes/stack_20l.lua
Normal file
@@ -0,0 +1,26 @@
|
||||
return{
|
||||
color=COLOR.cyan,
|
||||
env={
|
||||
drop=60,lock=60,
|
||||
freshLimit=15,
|
||||
fillClear=false,
|
||||
bg='none',bgm='there',
|
||||
},
|
||||
mesDisp=function(P)
|
||||
setFont(55)
|
||||
mStr(P.stat.piece,69,265)
|
||||
end,
|
||||
score=function(P)return{P.stat.piece,P.stat.time}end,
|
||||
scoreDisp=function(D)return D[1].." Pieces".." "..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 B=P.stat.piece
|
||||
return
|
||||
B>=55 and 5 or
|
||||
B>=52 and 4 or
|
||||
B>=49 and 3 or
|
||||
B>=47 and 2 or
|
||||
B>=44 and 1 or
|
||||
0
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user