Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        public static void SoundEffects()
        {
            if (SoundEffectSet())
            {
                LoadingSound  = CrossSimpleAudioPlayer.CreateSimpleAudioPlayer();
                ClickingSound = CrossSimpleAudioPlayer.CreateSimpleAudioPlayer();
                LetterSound   = CrossSimpleAudioPlayer.CreateSimpleAudioPlayer();
                CorrectSound  = CrossSimpleAudioPlayer.CreateSimpleAudioPlayer();
                TimeUpSound   = CrossSimpleAudioPlayer.CreateSimpleAudioPlayer();
                StrikeSound   = CrossSimpleAudioPlayer.CreateSimpleAudioPlayer();
                WrongSound    = CrossSimpleAudioPlayer.CreateSimpleAudioPlayer();

                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");
            }
            else
            {
                ClickingSound.Dispose();
                LetterSound.Dispose();
                CorrectSound.Dispose();
                TimeUpSound.Dispose();
                StrikeSound.Dispose();
                WrongSound.Dispose();
            }
            Loading_Sound();
            Wrong_Sound();
            Correct_Sound();
            TimeUp_Sound();
            Clicking_Sound();
            Letter_Sound();
            Strike_Sound();
        }