微调pc联系模式左侧信息位置

继续推进大爆炸模式框架
This commit is contained in:
MrZ626
2021-11-18 03:54:42 +08:00
parent e7d9703fcc
commit c752556bf3
4 changed files with 19 additions and 25 deletions

View File

@@ -1,41 +1,35 @@
local function task_newBoard(P)
local F,L={},{}
local function task_newBoard(P,init)
local F,L={},{1}
--TODO
P:pushNextList(L)
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.gameEnv.heightLimit=#F
P:pushLineList(F)
end
local function _check(P)
if #P.field>0 then
P.gameEnv.heightLimit=P.gameEnv.heightLimit-P.lastPiece.row
if #P.field+P.stat.row%4>4 then
P:lose()
end
else
if P.stat.pc>=100 then
P.gameEnv.heightLimit=P.gameEnv.heightLimit-P.lastPiece.row
if P.gameEnv.heightLimit==0 then
P.modeData.stage=P.modeData.stage+1
if P.modeData.stage>=100 then
P:win('finish')
else
P:newTask(task_newBoard)
if P.frameRun<180 then P.fieldBeneath=0 end
end
end
end
return{
sequence='none',
RS="SRS",
pushSpeed=5,
mesDisp=function(P)
setFont(60)
mStr(P.stat.pc,63,340)
mText(TEXTOBJ.pc,63,410)
mStr(P.modeData.stage,63,280)
mText(TEXTOBJ.wave,63,350)
end,
hook_drop=_check,
-- task=_check,--Just run one time at first to start first level
task=function(P)
P:switchKey(6,false)
YIELD()
P:lose()
end,
task=function(P)task_newBoard(P,true)P.fieldBeneath=0 end,--Just run one time at first to start first level
}

View File

@@ -46,8 +46,8 @@ return{
RS="SRS",
mesDisp=function(P)
setFont(60)
mStr(P.stat.pc,63,340)
mText(TEXTOBJ.pc,63,410)
mStr(P.stat.pc,63,260)
mText(TEXTOBJ.pc,63,330)
end,
hook_drop=_check,
task=_check,--Just run one time at first to start first level

View File

@@ -39,8 +39,8 @@ return{
RS="SRS",
mesDisp=function(P)
setFont(60)
mStr(P.stat.pc,63,340)
mText(TEXTOBJ.pc,63,410)
mStr(P.stat.pc,63,260)
mText(TEXTOBJ.pc,63,330)
end,
hook_drop=_check,
task=_check,--Just run one time at first to start first level

View File

@@ -6,12 +6,12 @@ return{
eventSet='bigbang',
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,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
getRank=function(P)
do return 1 end
local L=P.stat.pc
local L=P.modeData.stage
return
L>=100 and 5 or
L>=70 and 4 or