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.
Setup
Sprite
class constructor to use theAsepriteDocument
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
andSprite
classed now have a new CenterOrigin() method for automatically setting the origin of the sprite/animation to its center.