Skip to content

Commit

Permalink
调整教程第二关和第五关代码
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZ626 committed Sep 21, 2024
1 parent 7644a7a commit 4899ca4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
21 changes: 8 additions & 13 deletions assets/game/mode/brik/interior/tutorial/2.sequence.lua
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ return {
end},
"wait signal",
"jeq quest2,signal,false",
"sfx finish_win",
"sfx beep_rise",

{cmd=function(P)
P.settings.holdSlot=1
Expand Down Expand Up @@ -178,7 +178,7 @@ return {
end},
"wait signal",
"jeq quest3,signal,false",
"sfx finish_win",
"sfx beep_rise",

{cmd=function(P)
P.spawnTimer=1200
Expand All @@ -204,17 +204,12 @@ return {
end},
"wait signal",
"jeq quest4,signal,false",
"sfx finish_win",

"jeq extra,extra,true",
{cmd='say',arg={duration='6.26s',text="@tutorial_pass",size=60,k=2,type='bold',style='beat',c=COLOR.lG,y=-30}},
{cmd=function(P) PROGRESS.setTutorialPassed(2,1) end},
"j end",
"extra:",
{cmd='say',arg={duration='6.26s',text="@tutorial_pass",size=60,k=2,type='bold',style='beat',c=COLOR.lY,y=-30}},
{cmd=function(P) PROGRESS.setTutorialPassed(2,2) end},
"end:",
"finish win",
"sfx beep_rise",
{cmd=function(P)
P:say{duration='6.26s',text="@tutorial_pass",size=60,k=2,type='bold',style='beat',c=P.modeData.extra and COLOR.lY or COLOR.lG,y=-30}
PROGRESS.setTutorialPassed(2,P.modeData.extra and 2 or 1)
P:finish('win')
end},
},
}},
result=autoBack_interior,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ return {
if posSucc and keySucc then
-- Correct
P.modeData.finesseCombo=P.modeData.finesseCombo+1
PROGRESS.setInteriorScore('tuto5_score',P.modeData.finesseCombo)
if P.modeData.finesseCombo%3==0 then
PROGRESS.setInteriorScore('tuto5_score',P.modeData.finesseCombo)
end
if P.modeData.finesseCombo==99 then
PROGRESS.setInteriorScore('tuto5_time',P.modeData.finesseCombo)
P.modeData.display=STRING.time(P.gameTime/1000)
Expand Down

0 comments on commit 4899ca4

Please sign in to comment.