修正之前玩家showTextF方法改名但用的地方漏改了

This commit is contained in:
MrZ626
2021-08-25 13:51:20 +08:00
parent 295e79984f
commit 4c18629cd7
17 changed files with 27 additions and 27 deletions

View File

@@ -327,7 +327,7 @@ function gameOver()--Save record
end end
if p<10 then if p<10 then
if p==0 then if p==0 then
P:showTextF(text.newRecord,0,-100,100,'beat',.5) P:_showText(text.newRecord,0,-100,100,'beat',.5)
if SETTING.autoSave and DATA.saveReplay()then if SETTING.autoSave and DATA.saveReplay()then
GAME.saved=true GAME.saved=true
SFX.play('connected') SFX.play('connected')

View File

@@ -24,10 +24,10 @@ return{
D.wave=D.wave+1 D.wave=D.wave+1
if D.wave%10==0 then if D.wave%10==0 then
if D.wave==20 then if D.wave==20 then
P:showTextF(text.great,0,-140,100,'appear',.6) P:_showText(text.great,0,-140,100,'appear',.6)
P.gameEnv.pushSpeed=3 P.gameEnv.pushSpeed=3
elseif D.wave==50 then elseif D.wave==50 then
P:showTextF(text.maxspeed,0,-140,100,'appear',.6) P:_showText(text.maxspeed,0,-140,100,'appear',.6)
end end
end end
end end

View File

@@ -29,13 +29,13 @@ return{
D.wave=D.wave+1 D.wave=D.wave+1
if D.wave%10==0 then if D.wave%10==0 then
if D.wave==10 then if D.wave==10 then
P:showTextF(text.great,0,-140,100,'appear',.6) P:_showText(text.great,0,-140,100,'appear',.6)
P.gameEnv.pushSpeed=4 P.gameEnv.pushSpeed=4
elseif D.wave==20 then elseif D.wave==20 then
P:showTextF(text.awesome,0,-140,100,'appear',.6) P:_showText(text.awesome,0,-140,100,'appear',.6)
P.gameEnv.pushSpeed=5 P.gameEnv.pushSpeed=5
elseif D.wave==30 then elseif D.wave==30 then
P:showTextF(text.maxspeed,0,-140,100,'appear',.6) P:_showText(text.maxspeed,0,-140,100,'appear',.6)
end end
end end
end end

View File

@@ -24,15 +24,15 @@ return{
if D.wave<=75 then if D.wave<=75 then
D.rpm=math.floor(144e3/t)*.1 D.rpm=math.floor(144e3/t)*.1
if D.wave==25 then if D.wave==25 then
P:showTextF(text.great,0,-140,100,'appear',.6) P:_showText(text.great,0,-140,100,'appear',.6)
P.gameEnv.pushSpeed=3 P.gameEnv.pushSpeed=3
P.dropDelay,P.gameEnv.drop=4,4 P.dropDelay,P.gameEnv.drop=4,4
elseif D.wave==50 then elseif D.wave==50 then
P:showTextF(text.awesome,0,-140,100,'appear',.6) P:_showText(text.awesome,0,-140,100,'appear',.6)
P.gameEnv.pushSpeed=4 P.gameEnv.pushSpeed=4
P.dropDelay,P.gameEnv.drop=3,3 P.dropDelay,P.gameEnv.drop=3,3
elseif D.wave==75 then elseif D.wave==75 then
P:showTextF(text.maxspeed,0,-140,100,'appear',.6) P:_showText(text.maxspeed,0,-140,100,'appear',.6)
P.dropDelay,P.gameEnv.drop=2,2 P.dropDelay,P.gameEnv.drop=2,2
end end
end end

View File

@@ -24,16 +24,16 @@ return{
if D.wave<=90 then if D.wave<=90 then
D.rpm=math.floor(108e3/t)*.1 D.rpm=math.floor(108e3/t)*.1
if D.wave==25 then if D.wave==25 then
P:showTextF(text.great,0,-140,100,'appear',.6) P:_showText(text.great,0,-140,100,'appear',.6)
P.gameEnv.pushSpeed=2 P.gameEnv.pushSpeed=2
P.dropDelay,P.gameEnv.drop=20,20 P.dropDelay,P.gameEnv.drop=20,20
elseif D.wave==50 then elseif D.wave==50 then
P:showTextF(text.awesome,0,-140,100,'appear',.6) P:_showText(text.awesome,0,-140,100,'appear',.6)
P.gameEnv.pushSpeed=3 P.gameEnv.pushSpeed=3
P.dropDelay,P.gameEnv.drop=10,10 P.dropDelay,P.gameEnv.drop=10,10
elseif D.wave==90 then elseif D.wave==90 then
P.dropDelay,P.gameEnv.drop=5,5 P.dropDelay,P.gameEnv.drop=5,5
P:showTextF(text.maxspeed,0,-140,100,'appear',.6) P:_showText(text.maxspeed,0,-140,100,'appear',.6)
end end
end end
end end

View File

@@ -3,9 +3,9 @@ local function check_rise(P)
if #P.clearedRow==0 then if #P.clearedRow==0 then
if L>0 then if L>0 then
if L<3 then if L<3 then
P:showTextF(text.almost,0,-120,80,'beat',.8) P:_showText(text.almost,0,-120,80,'beat',.8)
elseif L<5 then elseif L<5 then
P:showTextF(text.great,0,-120,80,'fly',.8) P:_showText(text.great,0,-120,80,'fly',.8)
end end
end end
for _=1,8-L do for _=1,8-L do
@@ -13,7 +13,7 @@ local function check_rise(P)
end end
else else
if L==0 then if L==0 then
P:showTextF(text.awesome,0,-120,80,'beat',.6) P:_showText(text.awesome,0,-120,80,'beat',.6)
SFX.play('clear') SFX.play('clear')
BG.send(26) BG.send(26)
for _=1,8 do for _=1,8 do

View File

@@ -15,7 +15,7 @@ local function score(P)
s=D.target/100--range from 1 to 9 s=D.target/100--range from 1 to 9
local E=P.gameEnv local E=P.gameEnv
if s<4 then if s<4 then
P:showTextF(text.stage:gsub("$1",s),0,-120,80,'fly') P:_showText(text.stage:gsub("$1",s),0,-120,80,'fly')
--First 300 --First 300
if s~=1 then E.lock=E.lock-1 end if s~=1 then E.lock=E.lock-1 end
if s~=2 then E.wait=E.wait-1 end if s~=2 then E.wait=E.wait-1 end
@@ -23,7 +23,7 @@ local function score(P)
D.target=D.target+100 D.target=D.target+100
elseif s<10 then elseif s<10 then
if s==5 then BGM.play('distortion')end if s==5 then BGM.play('distortion')end
P:showTextF(text.stage:gsub("$1",s),0,-120,60,'fly',1.26) P:_showText(text.stage:gsub("$1",s),0,-120,60,'fly',1.26)
if s==4 or s==7 then E.das=E.das-1 end if s==4 or s==7 then E.das=E.das-1 end
if s%3==0 then E.lock=E.lock-1 if s%3==0 then E.lock=E.lock-1
elseif s%3==1 then E.wait=E.wait-1 elseif s%3==1 then E.wait=E.wait-1

View File

@@ -48,7 +48,7 @@ local function score(P)
return return
end end
D.target=D.target+100 D.target=D.target+100
P:showTextF(text.stage:gsub("$1",s),0,-120,80,'beat') P:_showText(text.stage:gsub("$1",s),0,-120,80,'beat')
SFX.play('reach') SFX.play('reach')
end end
end end

View File

@@ -33,7 +33,7 @@ local function score(P)
P:win('finish') P:win('finish')
else else
D.target=D.target+100 D.target=D.target+100
P:showTextF(text.stage:gsub("$1",s),0,-120,80,'fly') P:_showText(text.stage:gsub("$1",s),0,-120,80,'fly')
end end
SFX.play('reach') SFX.play('reach')
end end

View File

@@ -48,7 +48,7 @@ local function score(P)
return return
end end
D.target=D.target+100 D.target=D.target+100
P:showTextF(text.stage:gsub("$1",s),0,-120,80,'fly') P:_showText(text.stage:gsub("$1",s),0,-120,80,'fly')
SFX.play('reach') SFX.play('reach')
end end
end end

View File

@@ -44,7 +44,7 @@ local function score(P)
return return
end end
D.target=D.target+100 D.target=D.target+100
P:showTextF(text.stage:gsub("$1",s),0,-120,80,'fly') P:_showText(text.stage:gsub("$1",s),0,-120,80,'fly')
end end
end end

View File

@@ -33,7 +33,7 @@ local function check(P)
P.gameEnv.lock=pc_lock[s]or 25 P.gameEnv.lock=pc_lock[s]or 25
P.gameEnv.fall=pc_fall[s]or 4 P.gameEnv.fall=pc_fall[s]or 4
if s==10 then if s==10 then
P:showTextF(text.maxspeed,0,-140,100,'appear',.6) P:_showText(text.maxspeed,0,-140,100,'appear',.6)
end end
end end
end end

View File

@@ -13,7 +13,7 @@ return{
table.insert(P.atkBuffer,{line=generateLine(P.holeRND:random(10)),amount=1,countdown=30,cd0=30,time=0,sent=false,lv=1}) table.insert(P.atkBuffer,{line=generateLine(P.holeRND:random(10)),amount=1,countdown=30,cd0=30,time=0,sent=false,lv=1})
P.atkBufferSum=P.atkBufferSum+1 P.atkBufferSum=P.atkBufferSum+1
P.stat.recv=P.stat.recv+1 P.stat.recv=P.stat.recv+1
if D.wave==45 then P:showTextF(text.maxspeed,0,-140,100,'appear',.6)end if D.wave==45 then P:_showText(text.maxspeed,0,-140,100,'appear',.6)end
D.timer=0 D.timer=0
D.wave=D.wave+1 D.wave=D.wave+1
end end

View File

@@ -20,7 +20,7 @@ return{
end end
P.atkBufferSum=P.atkBufferSum+s P.atkBufferSum=P.atkBufferSum+s
P.stat.recv=P.stat.recv+s P.stat.recv=P.stat.recv+s
if D.wave==60 then P:showTextF(text.maxspeed,0,-140,100,'appear',.6)end if D.wave==60 then P:_showText(text.maxspeed,0,-140,100,'appear',.6)end
D.timer=0 D.timer=0
D.wave=D.wave+1 D.wave=D.wave+1
end end

View File

@@ -14,7 +14,7 @@ return{
table.insert(P.atkBuffer,{line=generateLine(P.holeRND:random(10)),amount=4,countdown=t,cd0=t,time=0,sent=false,lv=3}) table.insert(P.atkBuffer,{line=generateLine(P.holeRND:random(10)),amount=4,countdown=t,cd0=t,time=0,sent=false,lv=3})
P.atkBufferSum=P.atkBufferSum+4 P.atkBufferSum=P.atkBufferSum+4
P.stat.recv=P.stat.recv+4 P.stat.recv=P.stat.recv+4
if D.wave==60 then P:showTextF(text.maxspeed,0,-140,100,'appear',.6)end if D.wave==60 then P:_showText(text.maxspeed,0,-140,100,'appear',.6)end
D.timer=0 D.timer=0
D.wave=D.wave+1 D.wave=D.wave+1
end end

View File

@@ -19,7 +19,7 @@ return{
) )
P.atkBufferSum=P.atkBufferSum+d%4+1 P.atkBufferSum=P.atkBufferSum+d%4+1
P.stat.recv=P.stat.recv+d%4+1 P.stat.recv=P.stat.recv+d%4+1
if D.wave==45 then P:showTextF(text.maxspeed,0,-140,100,'appear',.6)end if D.wave==45 then P:_showText(text.maxspeed,0,-140,100,'appear',.6)end
D.timer=0 D.timer=0
D.wave=d D.wave=d
end end

View File

@@ -19,7 +19,7 @@ return{
table.insert(P.atkBuffer,{line=generateLine(P.holeRND:random(10)),amount=6,countdown=1.5*t,cd0=1.5*t,time=0,sent=false,lv=5}) table.insert(P.atkBuffer,{line=generateLine(P.holeRND:random(10)),amount=6,countdown=1.5*t,cd0=1.5*t,time=0,sent=false,lv=5})
P.atkBufferSum=P.atkBufferSum+20 P.atkBufferSum=P.atkBufferSum+20
P.stat.recv=P.stat.recv+20 P.stat.recv=P.stat.recv+20
if D.wave==31 then P:showTextF(text.maxspeed,0,-140,100,'appear',.6)end if D.wave==31 then P:_showText(text.maxspeed,0,-140,100,'appear',.6)end
D.timer=0 D.timer=0
D.wave=D.wave+1 D.wave=D.wave+1
end end