Exemple #1
0
        /// <summary>
        /// Re spawn in the game
        /// </summary>
        public void DisplaySpawn()
        {
            ConsoleUtil.HeaderText = "Spawn Again";
            ConsoleUtil.DisplayReset();

            ConsoleUtil.DisplayMessage("Watch out for the bullies, they don't like you in their future!");
            ConsoleUtil.DisplayMessage("You gotta go back.");
            SoundPlayer player = new SoundPlayer();

            player.SoundLocation = AppDomain.CurrentDomain.BaseDirectory + "\\thinkmcfly.wav";
            player.Play();
            DisplayContinuePrompt();

            ConsoleViewHelpers.DisplayGetYesNoPrompt("Do you want to play again?");
            _gameTraveler.HealthPoints = 100;
        }
Exemple #2
0
        /// <summary>
        /// display hover abilities
        /// </summary>
        public void Hover()
        {
            ConsoleUtil.HeaderText = "Hover";
            ConsoleUtil.DisplayReset();
            ConsoleUtil.DisplayMessage("");

            ConsoleViewHelpers.DisplayGetYesNoPrompt("Do you have a hover board? ");
            foreach (Item item in _gameTraveler.TravelersItems)
            {
                if (item.GameObjectID == 3)

                {
                    ConsoleUtil.DisplayMessage("This is awesome, where should we hover to?  ");
                    var myplayer = new System.Media.SoundPlayer();
                    myplayer.SoundLocation = @"C:\Users\Jennifer\Documents\Visual Studio 2015\Projects\Back To The Future Game [sprint 3]\Project_TARDIS.S2_Starter\sound\hoverboard.wav";
                    myplayer.Play();
                }

                DisplayContinuePrompt();
            }
        }