示例#1
0
        public virtual void Draw(SpriteBatch batch, Vector2 position, float rotation, int layer)
        {
            Rectangle segment = new Rectangle(_frame % Columns * FrameWidth, _frame % Rows * FrameHeight, FrameWidth, FrameHeight);

            batch.Draw(TextureManager.Load(SheetName), position, segment, Color, rotation, Origin, Size, SpriteEffects.None, layer);
        }