public virtual void Render(object sender, RenderData data)
        {
            Sprite currentFrame = _animation.Frame(_frame);

            if (currentFrame == null)
            {
                return;
            }

            data.SpriteBatch.Draw(currentFrame.Texture, Pos - Viewport.Pos, currentFrame.Source, BlendColor, Rot, Origin, Vector2.One, (Flip ? SpriteEffects.FlipHorizontally : SpriteEffects.None), Depth);
        }
示例#2
0
 public void Draw(SpriteBatch spriteBatch)
 {
     spriteBatch.Draw(_border.Frame(0).Texture, Vector2.Zero, Color.White);
 }