public static void BackgroundEffects() { if (BackgroundMusicSet()) { MenuBGM = CrossSimpleAudioPlayer.CreateSimpleAudioPlayer(); InGameBGM = CrossSimpleAudioPlayer.CreateSimpleAudioPlayer(); MenuBGM.Load("sounds/Main Menu (Tok Blitz).wav"); MenuBGM.Loop = true; InGameBGM.Load("sounds/Game music (Tok Blitz).wav"); InGameBGM.Loop = true; } else { MenuBGM.Dispose(); InGameBGM.Dispose(); } Menu_BGM(); InGame_BGM(); }
public static void LoadGameSounds() { MenuBGM = CrossSimpleAudioPlayer.CreateSimpleAudioPlayer(); InGameBGM = CrossSimpleAudioPlayer.CreateSimpleAudioPlayer(); LoadingSound = CrossSimpleAudioPlayer.CreateSimpleAudioPlayer(); ClickingSound = CrossSimpleAudioPlayer.CreateSimpleAudioPlayer(); LetterSound = CrossSimpleAudioPlayer.CreateSimpleAudioPlayer(); CorrectSound = CrossSimpleAudioPlayer.CreateSimpleAudioPlayer(); TimeUpSound = CrossSimpleAudioPlayer.CreateSimpleAudioPlayer(); StrikeSound = CrossSimpleAudioPlayer.CreateSimpleAudioPlayer(); WrongSound = CrossSimpleAudioPlayer.CreateSimpleAudioPlayer(); MenuBGM.Load("sounds/Main Menu (Tok Blitz).wav"); MenuBGM.Loop = true; InGameBGM.Load("sounds/Game music (Tok Blitz).wav"); InGameBGM.Loop = true; LoadingSound.Load("sounds/loading screen (Tok Blitz).wav"); ClickingSound.Load("sounds/dropsound.wav"); LetterSound.Load("sounds/resetsound.wav"); CorrectSound.Load("sounds/correctsound.mp3"); TimeUpSound.Load("sounds/timeup.wav"); StrikeSound.Load("sounds/thunder shock sound.wav"); WrongSound.Load("sounds/wrongsound.wav"); Menu_BGM(); InGame_BGM(); //Effects Loading_Sound(); Wrong_Sound(); Correct_Sound(); TimeUp_Sound(); Clicking_Sound(); Letter_Sound(); Strike_Sound(); DisabledBackgroundMusic = false; DisabledSoundEffect = false; }