@@ -23,7 +23,7 @@ return{
|
|||||||
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:_showText(text.stage:gsub("$1",s),0,-120,80,'fly')
|
P:stageComplete(s)
|
||||||
--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
|
||||||
@@ -31,7 +31,7 @@ return{
|
|||||||
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:_showText(text.stage:gsub("$1",s),0,-120,60,'fly',1.26)
|
P:stageComplete(s)
|
||||||
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
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ return{
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
D.target=D.target+100
|
D.target=D.target+100
|
||||||
P:_showText(text.stage:gsub("$1",s),0,-120,80,'beat')
|
P:stageComplete(s)
|
||||||
SFX.play('reach')
|
SFX.play('reach')
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ return{
|
|||||||
P:win('finish')
|
P:win('finish')
|
||||||
else
|
else
|
||||||
D.target=D.target+100
|
D.target=D.target+100
|
||||||
P:_showText(text.stage:gsub("$1",s),0,-120,80,'fly')
|
P:stageComplete(s)
|
||||||
end
|
end
|
||||||
SFX.play('reach')
|
SFX.play('reach')
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ return{
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
D.target=D.target+100
|
D.target=D.target+100
|
||||||
P:_showText(text.stage:gsub("$1",s),0,-120,80,'fly')
|
P:stageComplete(s)
|
||||||
SFX.play('reach')
|
SFX.play('reach')
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ return
|
|||||||
local T=P.modeData.target
|
local T=P.modeData.target
|
||||||
--Stage 1: clear 3 techrash
|
--Stage 1: clear 3 techrash
|
||||||
if T==12 then--Stage 2: swap color of S/Z & J/L
|
if T==12 then--Stage 2: swap color of S/Z & J/L
|
||||||
|
P:stageComplete(2)
|
||||||
P.waiting=30
|
P.waiting=30
|
||||||
P.curMission=false
|
P.curMission=false
|
||||||
|
|
||||||
@@ -28,6 +29,7 @@ return
|
|||||||
P.modeData.target=26
|
P.modeData.target=26
|
||||||
SFX.play('reach')
|
SFX.play('reach')
|
||||||
elseif T==26 then--Stage 3: dig to bottom
|
elseif T==26 then--Stage 3: dig to bottom
|
||||||
|
P:stageComplete(3)
|
||||||
if not P.holdQueue[1]then--1 up if ban hold
|
if not P.holdQueue[1]then--1 up if ban hold
|
||||||
P.life=P.life+1
|
P.life=P.life+1
|
||||||
end
|
end
|
||||||
@@ -72,6 +74,7 @@ return
|
|||||||
P.modeData.target=42
|
P.modeData.target=42
|
||||||
SFX.play('reach')
|
SFX.play('reach')
|
||||||
elseif T==42 then--Stage 4: survive in high speed
|
elseif T==42 then--Stage 4: survive in high speed
|
||||||
|
P:stageComplete(4)
|
||||||
if P.garbageBeneath==0 then
|
if P.garbageBeneath==0 then
|
||||||
P.waiting=30
|
P.waiting=30
|
||||||
ENV.lock=11
|
ENV.lock=11
|
||||||
@@ -84,6 +87,7 @@ return
|
|||||||
p=41
|
p=41
|
||||||
end
|
end
|
||||||
elseif T==62 then--Stage 5: survive without easy-fresh rule
|
elseif T==62 then--Stage 5: survive without easy-fresh rule
|
||||||
|
P:stageComplete(5)
|
||||||
P.life=P.life+1
|
P.life=P.life+1
|
||||||
ENV.lock=13
|
ENV.lock=13
|
||||||
ENV.wait=5
|
ENV.wait=5
|
||||||
@@ -94,6 +98,7 @@ return
|
|||||||
P.modeData.target=126
|
P.modeData.target=126
|
||||||
SFX.play('reach')
|
SFX.play('reach')
|
||||||
elseif T==126 then--Stage 6: speed up
|
elseif T==126 then--Stage 6: speed up
|
||||||
|
P:stageComplete(6)
|
||||||
P.life=P.life+1
|
P.life=P.life+1
|
||||||
|
|
||||||
ENV.lock=11
|
ENV.lock=11
|
||||||
@@ -102,6 +107,7 @@ return
|
|||||||
|
|
||||||
P.modeData.target=162
|
P.modeData.target=162
|
||||||
elseif T==162 then--Stage 7: speed up+++
|
elseif T==162 then--Stage 7: speed up+++
|
||||||
|
P:stageComplete(7)
|
||||||
P.life=P.life+1
|
P.life=P.life+1
|
||||||
|
|
||||||
ENV.lock=10
|
ENV.lock=10
|
||||||
@@ -112,6 +118,7 @@ return
|
|||||||
P.modeData.target=226
|
P.modeData.target=226
|
||||||
SFX.play('reach')
|
SFX.play('reach')
|
||||||
elseif T==226 then--Stage 8: final invisible
|
elseif T==226 then--Stage 8: final invisible
|
||||||
|
P:stageComplete(8)
|
||||||
P.life=P.life+1
|
P.life=P.life+1
|
||||||
|
|
||||||
ENV.bone=false
|
ENV.bone=false
|
||||||
@@ -120,6 +127,7 @@ return
|
|||||||
P.modeData.target=259
|
P.modeData.target=259
|
||||||
SFX.play('reach')
|
SFX.play('reach')
|
||||||
elseif T==259 then--Stage 9: ending
|
elseif T==259 then--Stage 9: ending
|
||||||
|
P:stageComplete(9)
|
||||||
P.life=P.life+1
|
P.life=P.life+1
|
||||||
for i=1,7 do ENV.skin[i]=P.holeRND:random(16)end
|
for i=1,7 do ENV.skin[i]=P.holeRND:random(16)end
|
||||||
|
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ return{
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
D.target=D.target+100
|
D.target=D.target+100
|
||||||
P:_showText(text.stage:gsub("$1",s),0,-120,80,'fly')
|
P:stageComplete(s)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
task=function(P)
|
task=function(P)
|
||||||
|
|||||||
@@ -47,6 +47,9 @@ function Player:popScore(score)
|
|||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
function Player:stageComplete(stage)
|
||||||
|
self:_showText(text.stage:gsub("$1",stage),0,-120,60,'fly',1.26)
|
||||||
|
end
|
||||||
function Player:createLockFX()
|
function Player:createLockFX()
|
||||||
if self.gameEnv.lockFX then
|
if self.gameEnv.lockFX then
|
||||||
local CB=self.cur.bk
|
local CB=self.cur.bk
|
||||||
|
|||||||
Reference in New Issue
Block a user