Ejemplo n.º 1
0
        public void DrawFrame(SpriteBatch Batch, int Frame, Vector2D screenpos, int sourceY)
        {
            int FrameWidth = myTexture.Width / framecount;

            Rectangle sourcerect = new Rectangle(FrameWidth * Frame, sourceY, FrameWidth, myTexture.Height / 7);
            Batch.Draw(myTexture, screenpos.toVector2(), sourcerect, Color.White,
                Rotation, new Vector2((float)Origin.X / 2,(float)Origin.Y /2), Scale, SpriteEffects.None, Depth);
        }