准备-开始音效使用乐器采样

This commit is contained in:
MrZ626
2021-10-21 02:53:51 +08:00
parent 395ad907b8
commit 361dc576f3
5 changed files with 20 additions and 7 deletions

View File

@@ -1887,17 +1887,28 @@ local function update_alive(P)
P.frameRun=P.frameRun+1
if P.frameRun<=180 then
if P.frameRun==180 then
if P.frameRun==60 then
if P.id==1 then
SFX.play('start')
Snd('bass','G2')
Snd('lead','A3')
Snd('lead','D4')
end
elseif P.frameRun==120 then
if P.id==1 then
Snd('bass','A2')
Snd('lead','B3')
Snd('lead','E4')
end
elseif P.frameRun==180 then
if P.id==1 then
Snd('bass','A3')
Snd('lead','A3')
Snd('lead','E4')
Snd('lead','A4')
end
P.control=true
P.timing=true
P:popNext()
elseif P.frameRun==60 or P.frameRun==120 then
if P.id==1 then
SFX.play('ready')
end
end
if P.movDir~=0 then
if P.moving<P.gameEnv.das then