Everything you need to load and draw sprites from spritesheets in MonoGame!
A packed Sheet
is a spritesheet with it's sprites packed together to reduce texture size.
spriteBatch.Begin();
var sheet = Content.Load<Sheet>("MyPackedSheet");
spriteBatch.Draw(sheet.Texture, position: Vector2.Zero, source: sheet["SpriteName"], color: Color.White, origin: sheet.GetOrigin("SpriteName"));
spriteBatch.End();
A GridSheet
is a spritesheet with a grid of sprites.
spriteBatch.Begin();
var sheet = Content.Load<GridSheet>("MyPackedSheet");
spriteBatch.Draw(sheet.Texture, position: Vector2.Zero, source: sheet[column, row], color: Color.White);
spriteBatch.End();