挖掘模式也使用独立规则包,可以对战使用

This commit is contained in:
MrZ626
2021-09-01 03:14:37 +08:00
parent e5287d876b
commit 5c8b80741f
11 changed files with 83 additions and 67 deletions

View File

@@ -1,22 +1,8 @@
local function check_rise(P)
for _=1,math.min(10,40-P.stat.dig)-P.garbageBeneath do
P:garbageRise(21,1,P:getHolePos())
end
if P.stat.dig==40 then
P:win('finish')
end
end
return{
color=COLOR.lBlue,
env={
pushSpeed=6,
dropPiece=check_rise,
mesDisp=function(P)
setFont(55)
mStr(40-P.stat.dig,63,265)
end,
eventSet='digBase',
eventSet='dig_40L',
bg='bg1',bgm='way',
},
score=function(P)return{P.stat.time,P.stat.piece}end,