public override void Draw(int ticks) { this.X++; if (this.X > 20) { this.X = 10; } if (ticks % 2 == 0) { for (int i = 1; i <= 5; i++) { for (int j = 1; j <= 5; j++) { if (i >= j && i >= 6 - j) { SingletonEngine2D.SetPixel(this.X + i, this.Y + j, this.Color = ConsoleColor.Yellow); } } } } else { for (int i = 1; i <= 5; i++) { for (int j = 1; j <= 5; j++) { if (i <= j && i <= 6 - j) { SingletonEngine2D.SetPixel(this.X + i, this.Y + j, this.Color = ConsoleColor.Blue); } } } } }
public override void Draw(int ticks) { this.X++; if (this.X > 30) { this.X = 20; } if (ticks % 2 == 1) { for (int i = 0; i < 5; i++) { for (int j = 0; j < 5; j++) { SingletonEngine2D.SetPixel(this.X + i, this.Y + j, this.Color = ConsoleColor.White); } } } else { for (int i = 1; i <= 5; i++) { for (int j = 1; j <= 5; j++) { if ((j >= i && j >= 6 - i) || (j <= i && j <= 6 - i)) { SingletonEngine2D.SetPixel(this.X + i, this.Y + j, this.Color = ConsoleColor.Red); } } } } }
public override void Draw(int ticks) { for (int i = 0; i < 5; i++) { for (int j = 0; j < 5; j++) { SingletonEngine2D.SetPixel(this.X + i, this.Y + j, this.Color = ConsoleColor.White); } } }
public override void Draw(int ticks) { d.Message(); for (int i = 1; i <= 5; i++) { for (int j = 1; j <= 5; j++) { if (i >= j && i >= 6 - j) { SingletonEngine2D.SetPixel(this.X + i, this.Y + j, this.Color = ConsoleColor.Yellow); } } } }