AristurtleDev / monogame-aseprite

A Cross Platform C# Library That Adds Support For Aseprite Files in MonoGame Projects.
https://monogameaseprite.net
MIT License
166 stars 15 forks source link

Single frame importing #26

Closed manbeardgames closed 3 years ago

manbeardgames commented 3 years ago

Setup Sprite class constructor to use the AsepriteDocument as a parameter to create single frame/static image textures based on the import.

This was already possible, but by adding the constructor it keeps it consistent with the constructors of the AnimatedSprite class.

Both AnimatedSprite and Sprite classed now have a new CenterOrigin() method for automatically setting the origin of the sprite/animation to its center.

manbeardgames commented 3 years ago

When merged into stable, this will close out issue #10