Beispiel #1
0
 public override void Clear()
 {
     if (Y < (WindowHeight - 6))
     {
         SetCursorPosition(X, Y);
         Write("            ");
         WriteLine();
         SetCursorPosition(X, Y + 1);
         Write("               ");
         WriteLine();
         SetCursorPosition(X, Y + 2);
         Write("               ");
         WriteLine();
         SetCursorPosition(X, Y + 3);
         Write("               ");
         WriteLine();
         SetCursorPosition(X, Y + 4);
         Write("           ");
         WriteLine();
         SetCursorPosition(X, Y + 5);
         Write("            ");
         WriteLine();
         SetCursorPosition(X, Y + 6);
         Write("           ");
     }
     CursorLeft -= 1;
     for (int i = 0; i < bulletsR.Length; ++i)
     {
         bulletsR[i].Clear();
         bulletsL[i].Clear();
     }
     lives.Clear();
 }
Beispiel #2
0
 public override void Clear()
 {
     SetCursorPosition(X, Y);
     Write("   ");
     CursorLeft -= 1;
     foreach (var item in bullets)
     {
         item.Clear();
     }
     lives.Clear();
 }