整理模式代码:

移除无用的pauseLimit
移除重复的模式load函数(自动创建一个玩家)
This commit is contained in:
MrZ626
2021-08-03 02:05:13 +08:00
parent cca53b6376
commit 9b1f9fa9dd
78 changed files with 5 additions and 248 deletions

View File

@@ -499,7 +499,11 @@ do--function resetGameData(args)
end
destroyPlayers()
GAME.curMode.load()
if GAME.curMode.load then
GAME.curMode.load()
else
PLY.newPlayer(1)
end
freshPlayerPosition(args:find'q')
VK.restore()
if GAME.modeEnv.task then

View File

@@ -35,10 +35,6 @@ return{
end,
bg='rainbow2',bgm='shining terminal',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(55)
mStr(P.modeData.wave,69,200)

View File

@@ -43,10 +43,6 @@ return{
end,
bg='rainbow2',bgm='shining terminal',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(55)
mStr(P.modeData.wave,69,200)

View File

@@ -13,10 +13,6 @@ return{
end,
bg='tunnel',bgm='echo',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(65)
mStr(P.stat.atk,69,310)

View File

@@ -13,10 +13,6 @@ return{
end,
bg='blackhole',bgm='echo',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(65)
mStr(P.stat.atk,69,310)

View File

@@ -12,10 +12,6 @@ return{
end,
bg='tunnel',bgm='echo',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(65)
mStr(P.stat.atk,69,310)

View File

@@ -13,10 +13,6 @@ return{
end,
bg='blackhole',bgm='echo',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(65)
mStr(P.stat.atk,69,310)

View File

@@ -10,10 +10,6 @@ return{
end,
bg='bg1',bgm='new era',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
end,
score=function(P)return{P.modeData.event,P.stat.finesseRate*.2/P.stat.piece}end,
scoreDisp=function(D)return("%d Stage %.2f%%"):format(D[1],D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]>b[2]end,

View File

@@ -8,10 +8,6 @@ return{
freshLimit=10,
bg='glow',bgm='push',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
mText(drawableText.line,69,300)
mText(drawableText.techrash,69,420)

View File

@@ -12,10 +12,6 @@ return{
freshLimit=15,
bg='rgb',bgm='push',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
mText(drawableText.line,69,300)
mText(drawableText.techrash,69,420)

View File

@@ -13,10 +13,6 @@ return{
freshLimit=15,
bg='rgb',bgm='push',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
mText(drawableText.line,69,300)
mText(drawableText.techrash,69,420)

View File

@@ -9,10 +9,6 @@ return{
dropPiece=function(P)if P.stat.row>=200 then P:win('finish')end end,
bg='glow',bgm='push',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
mText(drawableText.line,69,300)
mText(drawableText.techrash,69,420)

View File

@@ -12,10 +12,6 @@ return{
freshLimit=15,
bg='rgb',bgm='far',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
mText(drawableText.line,69,300)
mText(drawableText.techrash,69,420)

View File

@@ -12,7 +12,6 @@ return{
freshLimit=15,
bg='none',bgm='far',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
if SETTING.sfx_spawn==0 then

View File

@@ -27,7 +27,6 @@ return{
freshLimit=15,ospin=false,
bg='rgb',bgm='oxygen',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
local P=PLAYERS[1]

View File

@@ -25,7 +25,6 @@ return{
freshLimit=15,ospin=false,
bg='rgb',bgm='oxygen',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
local P=PLAYERS[1]

View File

@@ -33,9 +33,6 @@ return{
bg='rgb',bgm='magicblock',
},
slowMark=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(75)
local r=P.modeData.target*.1

View File

@@ -42,10 +42,6 @@ return{
end,
bg='rainbow2',bgm='storm',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(55)
mStr(P.modeData.wave,69,200)

View File

@@ -42,10 +42,6 @@ return{
end,
bg='rainbow2',bgm='storm',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(55)
mStr(P.modeData.wave,69,200)

View File

@@ -21,10 +21,6 @@ return{
end,
bg='bg2',bgm='there',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(65)
mStr(P.modeData.wave,69,310)

View File

@@ -20,10 +20,6 @@ return{
end,
bg='bg2',bgm='there',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(65)
mStr(P.modeData.wave,69,310)

View File

@@ -81,10 +81,6 @@ return{
freshLimit=15,
bg='blockfall',bgm='reason',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(70)
local R=100-P.stat.row

View File

@@ -11,10 +11,6 @@ return{
freshLimit=15,
bg='blockfall',bgm='reason',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(70)
local R=100-P.stat.row

View File

@@ -5,9 +5,6 @@ return{
infHold=true,
bg='blockfall',bgm='infinite',
},
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(45)
mStr(("%.1f"):format(P.stat.atk),69,190)

View File

@@ -34,11 +34,7 @@ return{
mindas=7,minarr=1,minsdarr=1,
bg='bg2',bgm='blank',
},
pauseLimit=true,
slowMark=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(45)
mStr(P.stat.row,69,320)

View File

@@ -25,11 +25,7 @@ return{
noInitSZO=true,
bg='cubes',bgm='push',
},
pauseLimit=true,
slowMark=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(45)
mStr(P.stat.row,69,320)

View File

@@ -22,11 +22,7 @@ return{
noInitSZO=true,
bg='bg2',bgm='push',
},
pauseLimit=true,
slowMark=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(45)
mStr(P.stat.row,69,320)

View File

@@ -40,9 +40,6 @@ return{
bg='blockspace',bgm='hope',
},
slowMark=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
mText(drawableText.line,69,300)
mText(drawableText.techrash,69,420)

View File

@@ -57,9 +57,6 @@ return{
bg='lightning',bgm='rectification',
},
slowMark=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(45)
mStr(P.modeData.pt,69,320)

View File

@@ -73,9 +73,6 @@ return{
bg='bg2',bgm='secret7th',
},
slowMark=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(45)
mStr(P.modeData.pt,69,320)

View File

@@ -59,9 +59,6 @@ return{
bg='bg1',bgm='secret8th',
},
slowMark=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(45)
mStr(P.modeData.pt,69,320)

View File

@@ -73,9 +73,6 @@ return{
bg='bg1',bgm='secret8th',
},
slowMark=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(45)
mStr(P.modeData.pt,69,320)

View File

@@ -146,9 +146,6 @@ return{
bg='blockspace',bgm='super7th',
},
slowMark=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(45)
mStr(P.modeData.pt,69,320)

View File

@@ -68,9 +68,6 @@ return{
bg='bg2',bgm='secret7th',
},
slowMark=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(45)
mStr(P.modeData.pt,69,320)

View File

@@ -8,10 +8,6 @@ return{
ospin=false,
bg='rgb',bgm='truth',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(45)
local R=100-P.stat.row

View File

@@ -21,10 +21,6 @@ return{
ospin=false,
bg='rgb',bgm='moonbeam',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(70)
mStr(P.stat.pc,69,300)

View File

@@ -8,10 +8,6 @@ return{
ospin=false,
bg='rgb',bgm='moonbeam',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(45)
local R=100-P.stat.row

View File

@@ -6,10 +6,6 @@ return{
dropPiece=function(P)if P.stat.row>=100 then P:win('finish')end end,
bg='rgb',bgm='truth',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(45)
local R=100-P.stat.row

View File

@@ -52,7 +52,6 @@ return{
RS="SRS",
bg='rgb',bgm='oxygen',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
check(PLAYERS[1])

View File

@@ -43,7 +43,6 @@ return{
RS="SRS",
bg='rgb',bgm='oxygen',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
check(PLAYERS[1])

View File

@@ -43,11 +43,7 @@ return{
end,
bg='bg2',bgm='push',
},
pauseLimit=true,
slowMark=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(45)
mStr(P.stat.row,69,320)

View File

@@ -43,11 +43,7 @@ return{
end,
bg='bg2',bgm='secret8th',
},
pauseLimit=true,
slowMark=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(45)
mStr(P.stat.row,69,320)

View File

@@ -49,11 +49,7 @@ return{
end,
bg='bg2',bgm='secret7th',
},
pauseLimit=true,
slowMark=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(45)
mStr(P.stat.row,69,320)

View File

@@ -7,7 +7,6 @@ return{
bufferLimit=20,
bg='bg2',bgm='battle',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
PLY.newAIPlayer(2,AIBUILDER('9S',4))

View File

@@ -7,7 +7,6 @@ return{
bufferLimit=20,
bg='bg2',bgm='battle',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
PLY.newAIPlayer(2,AIBUILDER('9S',6))

View File

@@ -7,7 +7,6 @@ return{
bufferLimit=20,
bg='bg2',bgm='battle',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
PLY.newAIPlayer(2,AIBUILDER('CC',6,2,true,30000))

View File

@@ -7,7 +7,6 @@ return{
bufferLimit=20,
bg='bg2',bgm='battle',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
PLY.newAIPlayer(2,AIBUILDER('9S',5))

View File

@@ -7,7 +7,6 @@ return{
bufferLimit=20,
bg='bg2',bgm='battle',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
PLY.newAIPlayer(2,AIBUILDER('CC',7,3,true,50000))

View File

@@ -6,9 +6,6 @@ return{
dropPiece=function(P)if P.stat.atk>=100 then P:win('finish')end end,
bg='matrix',bgm='new era',
},
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(45)
mStr(("%.1f"):format(P.stat.atk),69,190)

View File

@@ -7,9 +7,6 @@ return{
dropPiece=function(P)if P.stat.row>=40 then P:win('finish')end end,
bg='aura',bgm='waterfall',
},
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(55)
local r=40-P.stat.row

View File

@@ -6,9 +6,6 @@ return{
dropPiece=function(P)if P.stat.row>=40 then P:win('finish')end end,
bg='aura',bgm='waterfall',
},
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(55)
local r=40-P.stat.row

View File

@@ -7,9 +7,6 @@ return{
dropPiece=function(P)if P.stat.row>=40 then P:win('finish')end end,
bg='aura',bgm='waterfall',
},
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(55)
local r=40-P.stat.row

View File

@@ -6,9 +6,6 @@ return{
dropPiece=function(P)if P.stat.row>=40 then P:win('finish')end end,
bg='aura',bgm='beat5th',
},
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(55)
local r=40-P.stat.row

View File

@@ -7,9 +7,6 @@ return{
dropPiece=function(P)if P.stat.row>=40 then P:win('finish')end end,
bg='aura',bgm='waterfall',
},
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(55)
local r=40-P.stat.row

View File

@@ -5,9 +5,6 @@ return{
dropPiece=function(P)if P.stat.row>=1000 then P:win('finish')end end,
bg='rainbow',bgm='push',
},
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(55)
local r=1000-P.stat.row

View File

@@ -5,9 +5,6 @@ return{
dropPiece=function(P)if P.stat.row>=100 then P:win('finish')end end,
bg='bg2',bgm='race',
},
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(55)
local r=100-P.stat.row

View File

@@ -5,9 +5,6 @@ return{
dropPiece=function(P)if P.stat.row>=10 then P:win('finish')end end,
bg='bg2',bgm='race',
},
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(55)
local r=10-P.stat.row

View File

@@ -5,9 +5,6 @@ return{
dropPiece=function(P)if P.stat.row>=20 then P:win('finish')end end,
bg='bg2',bgm='race',
},
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(55)
local r=20-P.stat.row

View File

@@ -5,9 +5,6 @@ return{
dropPiece=function(P)if P.stat.row>=400 then P:win('finish')end end,
bg='rainbow',bgm='push',
},
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(55)
local r=400-P.stat.row

View File

@@ -5,9 +5,6 @@ return{
dropPiece=function(P)if P.stat.row>=40 then P:win('finish')end end,
bg='bg2',bgm='race',
},
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(55)
local r=40-P.stat.row

View File

@@ -22,10 +22,6 @@ return{
end,
bg='glow',bgm='new era',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(65)
mStr(P.modeData.wave,69,310)

View File

@@ -29,10 +29,6 @@ return{
end,
bg='glow',bgm='shift',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(65)
mStr(P.modeData.wave,69,310)

View File

@@ -23,10 +23,6 @@ return{
end,
bg='glow',bgm='shift',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(65)
mStr(P.modeData.wave,69,310)

View File

@@ -28,10 +28,6 @@ return{
end,
bg='glow',bgm='new era',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(65)
mStr(P.modeData.wave,69,310)

View File

@@ -28,10 +28,6 @@ return{
end,
bg='welcome',bgm='here',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(65)
mStr(P.modeData.wave,69,310)

View File

@@ -9,9 +9,6 @@ return{
bg='flink',bgm='infinite',
},
slowMark=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(45)
mStr(("%.1f"):format(P.stat.atk),69,190)

View File

@@ -22,9 +22,6 @@ return{
bg='flink',bgm='infinite',
},
slowMark=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(45)
mStr(("%.1f"):format(P.stat.atk),69,190)

View File

@@ -7,9 +7,6 @@ return{
dropPiece=function(P)if P.stat.atk>=100 then P:win('finish')end end,
bg='matrix',bgm='down',
},
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(45)
mStr(("%.1f"):format(P.stat.atk),69,190)

View File

@@ -19,9 +19,6 @@ return{
dropPiece=tech_check_hard,
bg='matrix',bgm='down',
},
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(45)
mStr(("%.1f"):format(P.stat.atk),69,190)

View File

@@ -7,9 +7,6 @@ return{
dropPiece=function(P)if P.stat.atk>=100 then P:win('finish')end end,
bg='matrix',bgm='warped',
},
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(45)
mStr(("%.1f"):format(P.stat.atk),69,190)

View File

@@ -19,9 +19,6 @@ return{
dropPiece=tech_check_hard,
bg='matrix',bgm='warped',
},
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(45)
mStr(("%.1f"):format(P.stat.atk),69,190)

View File

@@ -7,9 +7,6 @@ return{
dropPiece=function(P)if P.stat.atk>=100 then P:win('finish')end end,
bg='matrix',bgm='new era',
},
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(45)
mStr(("%.1f"):format(P.stat.atk),69,190)

View File

@@ -19,9 +19,6 @@ return{
dropPiece=tech_check_hard,
bg='matrix',bgm='new era',
},
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(45)
mStr(("%.1f"):format(P.stat.atk),69,190)

View File

@@ -18,9 +18,6 @@ return{
ospin=false,
bg='matrix',bgm='vapor',
},
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(65)
mStr(P.modeData.tsd,69,250)

View File

@@ -18,10 +18,6 @@ return{
ospin=false,
bg='matrix',bgm='vapor',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(65)
mStr(P.modeData.tsd,69,250)

View File

@@ -27,10 +27,6 @@ return{
ospin=false,
bg='matrix',bgm='vapor',
},
pauseLimit=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(65)
mStr(P.modeData.tsd,69,250)

View File

@@ -26,10 +26,6 @@ return{
bg='fan',bgm='memory',
},
slowMark=true,
pauseLimit=true,
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
gc.setLineWidth(2)
gc.rectangle('line',55,110,32,402)

View File

@@ -6,9 +6,6 @@ return{
dropPiece=function(P)if P.stat.row>=200 then P:win('finish')end end,
bg='bg2',bgm='venus',
},
load=function()
PLY.newPlayer(1)
end,
mesDisp=function(P)
setFont(70)
local R=200-P.stat.row