玩家上次消行信息lastClear属性改为表,包含更多信息

This commit is contained in:
MrZ626
2020-09-15 00:36:09 +08:00
parent e6fea98822
commit 3c4491ec42
10 changed files with 72 additions and 49 deletions

View File

@@ -1,8 +1,9 @@
local function check_tsd(P)
if #P.clearedRow>0 then
if P.lastClear~=52 then
local C=P.lastClear
if P.lastClear.id~=5 or P.lastClear.row~=2 then
P:lose()
elseif #P.clearedRow>0 then
else
P.modeData.event=P.modeData.event+1
end
end
@@ -22,9 +23,9 @@ return{
PLY.newPlayer(1,340,15)
end,
mesDisp=function(P,dx,dy)
setFont(75)
mStr(P.modeData.event,69,400)
mText(drawableText.tsd,69,477)
setFont(65)
mStr(P.modeData.event,69,320)
mText(drawableText.tsd,69,385)
end,
score=function(P)return{P.modeData.event,P.stat.time}end,
scoreDisp=function(D)return D[1].."TSD "..toTime(D[2])end,