Exemplo n.º 1
0
        public void Draw()
        {
            var animation = _animations[_currentAnimation];
            var rect      = animation.FrameRectangle;

            DrawHelper.AddNewJob(_blendState,
                                 animation.Texture,
                                 Camera.WorldToScreen(Position + BCircleLocalCenter),
                                 rect,
                                 Color.White,
                                 0f,
                                 new Vector2((float)rect.Width / 2, (float)rect.Height / 2),
                                 1f,
                                 SpriteEffects.None,
                                 0);
        }