diff options
Diffstat (limited to 'sounds.bmx')
-rw-r--r-- | sounds.bmx | 22 |
1 files changed, 19 insertions, 3 deletions
@@ -14,22 +14,38 @@ Type Sound Global popsfx:TSound
Global clicksfx:TSound
Global pathsfx:TSound
+
+ Global play_pop:Int
+ Global play_click:Int
+ Global play_path:Int
Function Init()
popsfx=LoadSound("incbin::SFX/pop.wav")
clicksfx=LoadSound("incbin::SFX/click.wav")
pathsfx=LoadSound("incbin::SFX/path.wav")
+ play_pop=False
+ play_click=False
+ play_path=False
End Function
Function Pop()
- popsfx.Play()
+ play_pop=True
End Function
Function Click()
- clicksfx.Play()
+ play_click=True
End Function
Function Path()
- pathsfx.Play()
+ play_path=True
+ End Function
+
+ Function Process()
+ If play_pop Then popsfx.Play()
+ If play_click Then clicksfx.Play()
+ If play_path Then pathsfx.Play()
+ play_pop=False
+ play_click=False
+ play_path=False
End Function
End Type
|