コード例 #1
0
        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
ファイル: HUD.cs プロジェクト: WhoBrokeTheBuild/BaconJam2013
 public void Draw(SpriteBatch spriteBatch)
 {
     spriteBatch.Draw(_border.Frame(0).Texture, Vector2.Zero, Color.White);
 }