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

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

@@ -56,6 +56,7 @@ getFont=FONT.get
mStr=GC.mStr
mText=GC.simpX
mDraw=GC.draw
Snd=SFX.playSample
--Delete all naked files (from too old version)
FILE.clear('')

Binary file not shown.

Binary file not shown.

View File

@@ -617,7 +617,8 @@ do--function resetGameData(args)
if GAME.setting.allowMod then
TASK.new(task_showMods)
end
SFX.play('ready')
Snd('bass','A2')
Snd('lead','A3')
collectgarbage()
end
end

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