public bool Interact(Player player)
 {
     GameplayManager.PlaySound("potion-interact");
     if (player.NumberOfMoves - 100 <= 0)
     {
         player.NumberOfMoves = 0;
     }
     else
     {
         player.NumberOfMoves -= 100;
     }
     return(true);
 }
Exemple #2
0
        public virtual bool Interact(Player player)
        {
            if (IsUnlocked)
            {
                return(true);
            }

            foreach (var key in player.KeyRing.Where(key => key.LockColor == LockColor))
            {
                IsUnlocked = true;
                Color      = ConsoleColor.White;
                player.KeyRing.Remove(key);
                GameplayManager.PlaySound("unlock-door");
                return(true);
            }
            return(false);
        }
Exemple #3
0
 private static void WelcomeScreen()
 {
     GameplayManager.PlaySound("welcomescreen-sound");
     Console.WriteLine();
     Console.WriteLine("\tWelcome to a dungeon crawler you'll never forget.");
     Console.ForegroundColor = ConsoleColor.Green;
     Console.Write("\t@ ");
     Console.ForegroundColor = ConsoleColor.White;
     Console.Write("<- This is you");
     Console.Write("! \n\tCollect keys to advance through the locked doors. \n\tBut be wary, there are ");
     Console.ForegroundColor = ConsoleColor.Red;
     Console.Write("monsters ");
     Console.ForegroundColor = ConsoleColor.White;
     Console.Write("lurking these halls....\n");
     Console.Write("\n\n\n\n\n\t|Legend\n\t|\n\t|Keys: K\n\t|Door: D\n\t|Monsters: X\n\t|Potion: P\n\n\n\n");
     Console.WriteLine("\t\t\t\tGood luck!\n");
     Console.WriteLine("\t\t\tPress any key to start...");
     Console.WriteLine("\n\n\n\n\n\n\tMade by:");
     Console.WriteLine("\tJohn Andersson & Emil Martini");
     Console.ReadKey(true);
     Console.Clear();
 }
Exemple #4
0
 public bool Interact(Player player)
 {
     player.NumberOfMoves += 100;
     GameplayManager.PlaySound("potion-interact");
     return(true);
 }
Exemple #5
0
 public bool Interact(Player player)
 {
     player.EnemiesInteractedWith++;
     GameplayManager.PlaySound("monster-moan");
     return(true);
 }
 public bool Interact(Player player)
 {
     player.NumberOfMoves += 50;
     GameplayManager.PlaySound("trapdoor-interact");
     return(true);
 }