Пример #1
0
 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);
 }
Пример #2
0
        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();
        }