Beispiel #1
0
        public virtual void Draw(SpriteBatch spriteBatch)
        {
            if (ObjectSprite != null)
            {
                DrawingUtils.DrawRectangle(
                    new Rectangle(
                        (int)Position.X * Engine.TileWidth,
                        (int)Position.Y * Engine.TileHeight,
                        Engine.TileWidth,
                        Engine.TileHeight), Color.Blue);

                ObjectSprite.Draw(spriteBatch);
            }
        }