public override void Draw(int ticks) { Engine2D.SetPixel(this.X - 1, this.Y); Engine2D.SetPixel(this.X + 1, this.Y); Engine2D.SetPixel(this.X, this.Y - 1); Engine2D.SetPixel(this.X, this.Y + 1); Engine2D.SetPixel(this.X, this.Y); }
static void Main(string[] args) { Engine2D.Draw( new[] { new Star(5, 5), new Star(20, 8, ConsoleColor.Yellow), new Star(10, 15, ConsoleColor.Red) }); Console.Read(); }