Exemplo n.º 1
0
        private void EraseRow(int i)
        {
            Pixel.Draw(topLeftPlayGround.X + 1, i, new String('*', levelElementsCount[i]), ConsoleColor.Red);
            Thread.Sleep(Game.Speed);
            Pixel.Draw(topLeftPlayGround.X + 1, i, new String('*', levelElementsCount[i]), ConsoleColor.Green);
            Thread.Sleep(Game.Speed);
            Pixel.Draw(topLeftPlayGround.X + 1, i, new String('*', levelElementsCount[i]), ConsoleColor.Cyan);
            Thread.Sleep(Game.Speed);
            Pixel.Draw(topLeftPlayGround.X + 1, i, new String('*', levelElementsCount[i]), ConsoleColor.Red);
            Thread.Sleep(Game.Speed);

            Pixel.Erase(topLeftPlayGround.X + 1, i, new String(' ', levelElementsCount[i]));
            for (int x = topLeftPlayGround.X + 1; x < bottomRightPlayGround.X; x++)
            {
                this.body.Remove(new Pixel(x, i, ' ', ConsoleColor.Gray));
            }
        }
Exemplo n.º 2
0
 public void Erase()
 {
     Pixel.Erase(this.Coordinate.X, this.Coordinate.Y);
 }
Exemplo n.º 3
0
 public void Erase()
 {
     Pixel.Erase(x + 7, y + 38, String.Format("{0}:{1}:{2}",
                                              time.Hours.ToString().PadLeft(2, '0'), time.Minutes.ToString().PadLeft(2, '0'),
                                              time.Seconds.ToString().PadLeft(2, '0')));
 }