新增一个彩蛋模式
This commit is contained in:
32
parts/eventsets/sprintSym.lua
Normal file
32
parts/eventsets/sprintSym.lua
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user