微调pc联系模式左侧信息位置
继续推进大爆炸模式框架
This commit is contained in:
@@ -1,41 +1,35 @@
|
|||||||
local function task_newBoard(P)
|
local function task_newBoard(P,init)
|
||||||
local F,L={},{}
|
local F,L={},{1}
|
||||||
--TODO
|
--TODO
|
||||||
P:pushNextList(L)
|
P:pushNextList(L)
|
||||||
|
|
||||||
P.control=false
|
P.control=false
|
||||||
if P.frameRun>180 then for _=1,26 do YIELD()end end
|
if not init then for _=1,26 do YIELD()end end
|
||||||
P.control=true
|
P.control=true
|
||||||
|
|
||||||
|
P.gameEnv.heightLimit=#F
|
||||||
P:pushLineList(F)
|
P:pushLineList(F)
|
||||||
end
|
end
|
||||||
local function _check(P)
|
local function _check(P)
|
||||||
if #P.field>0 then
|
P.gameEnv.heightLimit=P.gameEnv.heightLimit-P.lastPiece.row
|
||||||
P.gameEnv.heightLimit=P.gameEnv.heightLimit-P.lastPiece.row
|
if P.gameEnv.heightLimit==0 then
|
||||||
if #P.field+P.stat.row%4>4 then
|
P.modeData.stage=P.modeData.stage+1
|
||||||
P:lose()
|
if P.modeData.stage>=100 then
|
||||||
end
|
|
||||||
else
|
|
||||||
if P.stat.pc>=100 then
|
|
||||||
P:win('finish')
|
P:win('finish')
|
||||||
else
|
else
|
||||||
P:newTask(task_newBoard)
|
P:newTask(task_newBoard)
|
||||||
if P.frameRun<180 then P.fieldBeneath=0 end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return{
|
return{
|
||||||
|
sequence='none',
|
||||||
|
RS="SRS",
|
||||||
pushSpeed=5,
|
pushSpeed=5,
|
||||||
mesDisp=function(P)
|
mesDisp=function(P)
|
||||||
setFont(60)
|
setFont(60)
|
||||||
mStr(P.stat.pc,63,340)
|
mStr(P.modeData.stage,63,280)
|
||||||
mText(TEXTOBJ.pc,63,410)
|
mText(TEXTOBJ.wave,63,350)
|
||||||
end,
|
end,
|
||||||
hook_drop=_check,
|
hook_drop=_check,
|
||||||
-- task=_check,--Just run one time at first to start first level
|
task=function(P)task_newBoard(P,true)P.fieldBeneath=0 end,--Just run one time at first to start first level
|
||||||
task=function(P)
|
|
||||||
P:switchKey(6,false)
|
|
||||||
YIELD()
|
|
||||||
P:lose()
|
|
||||||
end,
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,8 +46,8 @@ return{
|
|||||||
RS="SRS",
|
RS="SRS",
|
||||||
mesDisp=function(P)
|
mesDisp=function(P)
|
||||||
setFont(60)
|
setFont(60)
|
||||||
mStr(P.stat.pc,63,340)
|
mStr(P.stat.pc,63,260)
|
||||||
mText(TEXTOBJ.pc,63,410)
|
mText(TEXTOBJ.pc,63,330)
|
||||||
end,
|
end,
|
||||||
hook_drop=_check,
|
hook_drop=_check,
|
||||||
task=_check,--Just run one time at first to start first level
|
task=_check,--Just run one time at first to start first level
|
||||||
|
|||||||
@@ -39,8 +39,8 @@ return{
|
|||||||
RS="SRS",
|
RS="SRS",
|
||||||
mesDisp=function(P)
|
mesDisp=function(P)
|
||||||
setFont(60)
|
setFont(60)
|
||||||
mStr(P.stat.pc,63,340)
|
mStr(P.stat.pc,63,260)
|
||||||
mText(TEXTOBJ.pc,63,410)
|
mText(TEXTOBJ.pc,63,330)
|
||||||
end,
|
end,
|
||||||
hook_drop=_check,
|
hook_drop=_check,
|
||||||
task=_check,--Just run one time at first to start first level
|
task=_check,--Just run one time at first to start first level
|
||||||
|
|||||||
@@ -6,12 +6,12 @@ return{
|
|||||||
eventSet='bigbang',
|
eventSet='bigbang',
|
||||||
bg='blockhole',bgm='peak',
|
bg='blockhole',bgm='peak',
|
||||||
},
|
},
|
||||||
score=function(P)return{P.stat.pc,P.stat.time}end,
|
score=function(P)return{P.modeData.stage,P.stat.time}end,
|
||||||
scoreDisp=function(D)return D[1].." Stage "..STRING.time(D[2])end,
|
scoreDisp=function(D)return D[1].." Stage "..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,
|
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
|
||||||
getRank=function(P)
|
getRank=function(P)
|
||||||
do return 1 end
|
do return 1 end
|
||||||
local L=P.stat.pc
|
local L=P.modeData.stage
|
||||||
return
|
return
|
||||||
L>=100 and 5 or
|
L>=100 and 5 or
|
||||||
L>=70 and 4 or
|
L>=70 and 4 or
|
||||||
|
|||||||
Reference in New Issue
Block a user