8000 GitHub - dotnet-ad/Spritesheet: Simple helper for creating sprite based animations for Monogame.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

dotnet-ad/Spritesheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple helper for creating sprite based animations for Monogame.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0