A stealth-based 2D platformer where you don't have to kill anyone unless you want to. https://www.semicolin.games
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.6 KiB

4 years ago
  1. using Microsoft.Xna.Framework.Audio;
  2. using Microsoft.Xna.Framework.Content;
  3. namespace SemiColinGames {
  4. public static class SoundEffects {
  5. public static SoundEffect IntroMusic;
  6. public static SoundEffect[] SwordSwings = new SoundEffect[14];
  7. // Returns true if all SoundEffects were successfully loaded.
  8. public static void Load(ContentManager content) {
  9. try {
  10. IntroMusic = content.Load<SoundEffect>("music/playonloop/smash_bros_short");
  11. SwordSwings[0] = content.Load<SoundEffect>("sfx/zs_whoosh_30568");
  12. SwordSwings[1] = content.Load<SoundEffect>("sfx/zs_whoosh_30569");
  13. SwordSwings[2] = content.Load<SoundEffect>("sfx/zs_whoosh_30570");
  14. SwordSwings[3] = content.Load<SoundEffect>("sfx/zs_whoosh_30571");
  15. SwordSwings[4] = content.Load<SoundEffect>("sfx/zs_whoosh_30572");
  16. SwordSwings[5] = content.Load<SoundEffect>("sfx/zs_whoosh_30573");
  17. SwordSwings[6] = content.Load<SoundEffect>("sfx/zs_whoosh_30574");
  18. SwordSwings[7] = content.Load<SoundEffect>("sfx/zs_whoosh_30575");
  19. SwordSwings[8] = content.Load<SoundEffect>("sfx/zs_whoosh_30576");
  20. SwordSwings[9] = content.Load<SoundEffect>("sfx/zs_whoosh_30577");
  21. SwordSwings[10] = content.Load<SoundEffect>("sfx/zs_whoosh_30578");
  22. SwordSwings[11] = content.Load<SoundEffect>("sfx/zs_whoosh_30579");
  23. SwordSwings[12] = content.Load<SoundEffect>("sfx/zs_whoosh_30580");
  24. SwordSwings[13] = content.Load<SoundEffect>("sfx/zs_whoosh_30581");
  25. } catch (NoAudioHardwareException) {
  26. Debug.WriteLine("SoundEffects.Load(): NoAudioHardwareException");
  27. }
  28. }
  29. }
  30. }