summaryrefslogtreecommitdiff
path: root/Penguloon/SoundManager.cs
diff options
context:
space:
mode:
authoraldrikboy <aldrikboy@gmail.com>2018-01-16 14:49:40 +0100
committeraldrikboy <aldrikboy@gmail.com>2018-01-16 14:49:40 +0100
commit6996be0fc143085b6aa459f2eb7b288ac1617c0b (patch)
tree55f5ca1e95dc52cf9a1e81a0250fb9436e5ec6a9 /Penguloon/SoundManager.cs
parent1f5295752f9052c2b7b64660fa36293f18de73d0 (diff)
upgrade sounds
Diffstat (limited to 'Penguloon/SoundManager.cs')
-rw-r--r--Penguloon/SoundManager.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/Penguloon/SoundManager.cs b/Penguloon/SoundManager.cs
index 92ba973..ddc32fa 100644
--- a/Penguloon/SoundManager.cs
+++ b/Penguloon/SoundManager.cs
@@ -10,6 +10,8 @@ namespace Penguloon
public static SoundEffectInstance BtnClick3 { get; set; }
public static SoundEffectInstance PlaceObject { get; set; }
public static SoundEffectInstance GameOver { get; set; }
+ public static SoundEffectInstance Upgrade { get; set; }
+ public static SoundEffectInstance Unavailable { get; set; }
public static void StartBaseline()
{
@@ -85,6 +87,32 @@ namespace Penguloon
GameOver.Play();
}
+ public static void PlayUpgradeSound()
+ {
+ if (Upgrade == null)
+ {
+ SoundEffect effect = ContentManager.GetSound("Sounds/upgrade");
+ Upgrade = effect.CreateInstance();
+ Upgrade.Volume = 1f;
+ Upgrade.IsLooped = false;
+ }
+
+ Upgrade.Play();
+ }
+
+ public static void PlayUnavailableSound()
+ {
+ if (Unavailable == null)
+ {
+ SoundEffect effect = ContentManager.GetSound("Sounds/unavailable");
+ Unavailable = effect.CreateInstance();
+ Unavailable.Volume = 1f;
+ Unavailable.IsLooped = false;
+ }
+
+ Unavailable.Play();
+ }
+
public static void PlayBalloonPopSound()
{
SoundEffect popEffect = ContentManager.GetSound("Sounds/pop");