准备-开始音效使用乐器采样
This commit is contained in:
1
main.lua
1
main.lua
@@ -56,6 +56,7 @@ getFont=FONT.get
|
|||||||
mStr=GC.mStr
|
mStr=GC.mStr
|
||||||
mText=GC.simpX
|
mText=GC.simpX
|
||||||
mDraw=GC.draw
|
mDraw=GC.draw
|
||||||
|
Snd=SFX.playSample
|
||||||
|
|
||||||
--Delete all naked files (from too old version)
|
--Delete all naked files (from too old version)
|
||||||
FILE.clear('')
|
FILE.clear('')
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -617,7 +617,8 @@ do--function resetGameData(args)
|
|||||||
if GAME.setting.allowMod then
|
if GAME.setting.allowMod then
|
||||||
TASK.new(task_showMods)
|
TASK.new(task_showMods)
|
||||||
end
|
end
|
||||||
SFX.play('ready')
|
Snd('bass','A2')
|
||||||
|
Snd('lead','A3')
|
||||||
collectgarbage()
|
collectgarbage()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1887,17 +1887,28 @@ local function update_alive(P)
|
|||||||
|
|
||||||
P.frameRun=P.frameRun+1
|
P.frameRun=P.frameRun+1
|
||||||
if P.frameRun<=180 then
|
if P.frameRun<=180 then
|
||||||
if P.frameRun==180 then
|
if P.frameRun==60 then
|
||||||
if P.id==1 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
|
end
|
||||||
P.control=true
|
P.control=true
|
||||||
P.timing=true
|
P.timing=true
|
||||||
P:popNext()
|
P:popNext()
|
||||||
elseif P.frameRun==60 or P.frameRun==120 then
|
|
||||||
if P.id==1 then
|
|
||||||
SFX.play('ready')
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
if P.movDir~=0 then
|
if P.movDir~=0 then
|
||||||
if P.moving<P.gameEnv.das then
|
if P.moving<P.gameEnv.das then
|
||||||
|
|||||||
Reference in New Issue
Block a user