Extremely basic APIs for creating sprite based animations.
Available on NuGet
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));
This project was inspired by kikito/anim8 great library for LÖVE2D.
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.
MIT © Aloïs Deniel