Ejemplo n.º 1
0
 private static void CheckIfLose()
 {
     for (int i = 1; i < 11; i++)
     {
         if (Matriz[i, 4])
         {
             Sonidos.StopBGM();
             Sonidos.PlaySound(Sonidos.Sounds.Pierde_1);
             for (int j = 23; j > 0; j--)
             {
                 Console.SetCursorPosition(1, j);
                 Console.Write("KBKBKBKBKB");
                 Thread.Sleep(20);
             }
             for (int j = 1; j < 24; j++)
             {
                 Console.SetCursorPosition(1, j);
                 Console.Write("          ");
                 Thread.Sleep(20);
             }
             Sonidos.PlaySound(Sonidos.Sounds.Pierde_2);
             Lose = true;
             ConsoleFunctions.WriteConsoleInput('\0');
             break;
         }
     }
 }