新增100a竞速模式

This commit is contained in:
MrZ626
2021-07-10 21:37:50 +08:00
parent 332700fd64
commit 53d94f1f51
10 changed files with 54 additions and 12 deletions

View File

@@ -791,6 +791,7 @@ return{
['backfire_h']= {"Backfire", "HARD", "Hold back the backfiring garbage lines."},
['backfire_l']= {"Backfire", "LUNATIC", "Hold back the backfiring garbage lines."},
['backfire_u']= {"Backfire", "ULTIMATE", "Hold back the backfiring garbage lines."},
['sprintAtk']= {"Sprint", "100 Attack", "Send 100 lines!"},
['zen']= {'Zen', "200", "A 200-line run without a time limit."},
['ultra']= {'Ultra', "EXTRA", "A 2-minute score attack."},
['infinite']= {'infinite', "", "It's just a sandbox."},

View File

@@ -704,6 +704,7 @@ return{
['backfire_h']= {"Retorno", "Difícil", "Lidia con tus propias líneas basura."},
['backfire_l']= {"Retorno", "Lunático", "Lidia con tus propias líneas basura."},
['backfire_u']= {"Retorno", "Supremo", "Lidia con tus propias líneas basura."},
-- ['sprintAtk']= {"Sprint", "100 Attack", "Send 100 lines!"},
['zen']= {'Zen', "200L", "200 líneas sin límite de tiempo."},
['ultra']= {'Ultra', "Extra", "¡Consigue el mayor puntaje posible en 2 minutos!"},
['infinite']= {"Infinito", "", "Modo Sandbox."},

View File

@@ -707,6 +707,7 @@ return{
-- ['backfire_h']= {"Backfire", "HARD", "Self-send garbages"},
-- ['backfire_l']= {"Backfire", "LUNATIC", "Self-send garbages"},
-- ['backfire_u']= {"Backfire", "ULTIMATE", "Self-send garbages"},
-- ['sprintAtk']= {"Sprint", "100 Attack", "Send 100 lines!"},
['zen']= {'Zen', "200", "200 lignes sans limites de temps."},
['ultra']= {'Ultra', "EXTRA", "2 minutes pour avoir le meilleur score."},
['infinite']= {"Infini", "", "Mode tranquile."},

View File

@@ -791,6 +791,7 @@ return{
-- ['backfire_h']= {"Backfire", "HARD", "Self-send garbages"},
-- ['backfire_l']= {"Backfire", "LUNATIC", "Self-send garbages"},
-- ['backfire_u']= {"Backfire", "ULTIMATE", "Self-send garbages"},
-- ['sprintAtk']= {"Sprint", "100 Attack", "Send 100 lines!"},
['zen']= {'Zen', "200", "200 linhas sem um limite de tempo."},
['ultra']= {'Ultra', "EXTRA", "Pegue a maior pontuação em 2 minutos."},
['infinite']= {"Infinito", "", "Modo Sandbox."},

View File

@@ -279,6 +279,7 @@ return{
['backfire_h']= {"自攻自受", "困难", "你在害怕什么"},
['backfire_l']= {"自攻自受", "疯狂", "别怂啊,打攻击呀"},
['backfire_u']= {"自攻自受", "极限", "能把自己玩死,不会吧"},
['sprintAtk']= {"竞速", "100攻击", "送100行"},
['zen']= {"", "200", "不限时200行"},
['ultra']= {"限时打分", "挑战", "2分钟刷分"},
['infinite']= {"无尽", "", "真的有人会玩这个?"},

View File

@@ -792,6 +792,7 @@ return{
['backfire_h']= {"Backfire", "困难", "打出100攻击"},
['backfire_l']= {"Backfire", "疯狂", "打出100攻击"},
['backfire_u']= {"Backfire", "极限", "打出100攻击"},
['sprintAtk']= {"竞速", "100攻击", "打出100攻击"},
['zen']= {"", "200", "不限时200行"},
['ultra']= {"限时打分", "挑战", "在两分钟内尽可能拿到最多的分数"},
['infinite']= {"无尽", "", "沙盒"},

View File

@@ -214,6 +214,7 @@ return{
['backfire_h']= {"自攻自防", "困难", "打出100攻击"},
['backfire_l']= {"自攻自防", "疯狂", "打出100攻击"},
['backfire_u']= {"自攻自防", "极限", "打出100攻击"},
['sprintAtk']= {"竞速", "100攻击", "打出100攻击"},
['zen']= {"", "200", "不限时200行"},
['ultra']= {"限时打分", "挑战", "在两分钟内尽可能拿到最多的分数"},
['infinite']= {"无尽", "", "沙盒"},

View File

@@ -42,7 +42,7 @@ return{
{name='master_l', x=0, y=-1000,size=40,shape=1,icon="master", unlock={'master_u'}},
{name='master_u', x=0, y=-1200,size=40,shape=3,icon="master", unlock={'master_final','master_ex','master_ph'}},
{name='master_final', x=0, y=-1600,size=40,shape=2,icon="master"},
{name='master_ph',x=-150, y=-1500,size=40,shape=2,icon="master"},
{name='master_ph', x=-150, y=-1500,size=40,shape=2,icon="master"},
{name='master_ex', x=150, y=-1500,size=40,shape=2,icon="master_ex"},
{name='rhythm_e', x=-350, y=-1000,size=40,shape=1,icon="rhythm", unlock={'rhythm_h'}},
@@ -85,12 +85,12 @@ return{
{name='pc_l', x=1100, y=-110, size=40,shape=3,icon="pc"},
{name='pc_inf', x=1100, y=-250, size=40,shape=2,icon="pc"},
{name='tech_n', x=400, y=-150, size=40,shape=1,icon="tech", unlock={'tech_n_plus','tech_h','tech_finesse'}},
{name='tech_n', x=400, y=-110, size=40,shape=1,icon="tech", unlock={'tech_n_plus','tech_h','tech_finesse','sprintAtk'}},
{name='tech_n_plus', x=600, y=160, size=40,shape=3,icon="tech", unlock={'tsd_e','backfire_n'}},
{name='tech_h', x=400, y=40, size=40,shape=1,icon="tech", unlock={'tech_h_plus','tech_l'}},
{name='tech_h_plus', x=200, y=70, size=35,shape=3,icon="tech"},
{name='tech_l', x=400, y=200, size=40,shape=1,icon="tech", unlock={'tech_l_plus'}},
{name='tech_l_plus', x=200, y=230, size=35,shape=3,icon="tech"},
{name='tech_h', x=220, y=120, size=40,shape=1,icon="tech", unlock={'tech_h_plus','tech_l'}},
{name='tech_h_plus', x=20, y=150, size=35,shape=3,icon="tech"},
{name='tech_l', x=220, y=280, size=40,shape=1,icon="tech", unlock={'tech_l_plus'}},
{name='tech_l_plus', x=20, y=310, size=35,shape=3,icon="tech"},
{name='tech_finesse', x=800, y=50, size=40,shape=1,icon="tech", unlock={'tech_finesse_f'}},
{name='tech_finesse_f', x=1000, y=50, size=40,shape=1,icon="tech"},
@@ -104,6 +104,8 @@ return{
{name='backfire_l', x=1100, y=350, size=40,shape=3,icon="backfire",unlock={'backfire_u'}},
{name='backfire_u', x=1250, y=350, size=35,shape=2,icon="backfire"},
{name='sprintAtk', x=400, y=200, size=40,shape=1,icon="sprint2"},
{name='zen', x=-800, y=-600, size=40,shape=1,icon="zen", unlock={'ultra','infinite','infinite_dig'}},
{name='ultra', x=-1000,y=-600, size=40,shape=1,icon="ultra"},
{name='infinite', x=-1000,y=-400, size=40,shape=1,icon='infinite'},

33
parts/modes/sprintAtk.lua Normal file
View File

@@ -0,0 +1,33 @@
return{
color=COLOR.green,
env={
infHold=true,
drop=1e99,lock=1e99,
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)
mStr(("%.2f"):format(P.stat.atk/P.stat.row),69,310)
mText(drawableText.atk,69,243)
mText(drawableText.eff,69,363)
end,
score=function(P)return{P.stat.atk<=100 and math.floor(P.stat.atk)or 100,P.stat.time}end,
scoreDisp=function(D)return D[1].." Attack "..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)
if P.stat.atk<40 then return end
local T=P.stat.time
return
T<40 and 5 or
T<50 and 4 or
T<70 and 3 or
T<100 and 2 or
T<150 and 1 or
0
end,
}

View File

@@ -22,11 +22,11 @@ return{
if P.stat.row<40 then return end
local T=P.stat.time
return
T<=26 and 5 or
T<=36 and 4 or
T<=52.6 and 3 or
T<=92.9 and 2 or
T<=183 and 1 or
0
T<=26 and 5 or
T<=36 and 4 or
T<=52.6 and 3 or
T<=92.9 and 2 or
T<=183 and 1 or
0
end,
}