新增一个彩蛋模式

This commit is contained in:
MrZ626
2021-09-30 01:13:43 +08:00
parent 3d4c51c532
commit 43db02f97d
13 changed files with 78 additions and 2 deletions

View File

@@ -0,0 +1,32 @@
local oppo={
[1]=7,[7]=1,[11]=3,[3]=11,[14]=14,[4]=4,[9]=9,
}
return{
skin={
1,7,11,3,14,4,9,
1,7,2,6,10,2,13,5,9,15,10,11,3,12,2,16,8,4,
10,13,2,8
},
mesDisp=function(P)
setFont(55)
local r=40-P.stat.row
if r<0 then r=0 end
mStr(r,63,265)
PLY.draw.drawTargetLine(P,r)
end,
dropPiece=function(P)
local F=P.field
for y=1,#F do
local l=F[y]
for x=1,5 do
if l[x]>0 and l[11-x]>0 and oppo[l[x]]~=l[11-x]then
P:lose()
return
end
end
end
if P.stat.row>=40 then
P:win('finish')
end
end
}