Ejemplo n.º 1
0
        /// <summary>
        /// Draw a char
        /// </summary>
        /// <param name="obj">
        /// The object to draw
        /// </param>
        protected override void Draw(DrawableGameObject obj)
        {
            Console.SetCursorPosition(obj.Position.X, obj.Position.Y);

            Console.ForegroundColor = (ConsoleColor)this.ColorMap[Color.FromName(obj.Color)];

            Console.Write(obj.ConsoleTexture);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Draw an object
 /// </summary>
 /// <param name="obj">
 /// The object to draw
 /// </param>
 protected abstract void Draw(DrawableGameObject obj);