/Spritesheet

Simple helper for creating sprite based animations for Monogame.

Primary LanguageC#MIT LicenseMIT

Spritesheet for Monogame

Extremely basic APIs for creating sprite based animations.

Install

Available on NuGet

NuGet

Quickstart

Create

var sheet = new Spritesheet(texture2d).WithGrid((32, 32));
var anim = sheet.CreateAnimation((0, 1), (1, 1), (2, 1)).FlipX();
anim.Start(Repeat.Mode.Loop);

Update

anim.Update(gameTime);

Draw

spriteBatch.Draw(anim, new Vector2(64, 64));

About

This project was inspired by kikito/anim8 great library for LÖVE2D.

Contributions

Contributions are welcome! If you find a bug please report it and if you want a feature please report it.

If you want to contribute code please file an issue and create a branch off of the current dev branch and file a pull request.

License

MIT © Aloïs Deniel