A Cross Platform C# Library That Adds Support For Aseprite Files in MonoGame Projects.
This release updates the dependency version of AsepriteDotNet used to AsepriteDotNet 1.7.2. This resolves a critical bug due to how Aseprite stores pixel data for a cel outside the bounds of a frame. If you select part of your image and move the pixels outside of the frame, the pixel data for the cel is still there even though its no longer visible or within the frame bounds. The method originally used to detect this was not sufficient enough, and has been adjusted to explicitly only process pixel data of a cel that is within the bounds of a frame, regardless of the cel size.
With this release, the entire processing core has been removed and is now using AsepriteDotNet to perform all of the file processing.
Creation of various types such as Sprite, Spritesheet, TextureAtlas, etc has been sightly adjusted. Please see the examples in the examples directory for information on usage until I can update documentation.
The following changes were implemented:
Updates from 5.1.3-beta-1
MonoGame.Aseprite.Configuration
false
this will assume frame index gets from the AsepriteFile
start at index 1 and not 0. This is so that the frame index you reference visually matches what the Aseprite UI shows for artists that are no programming zero-indexed savvyUpdates from 5.1.3-beta-2
MonoGame.Aserpite.Configuration
ZeroIndexedFrames
to be property of AsepriteFile
AsepriteFile.ZeroIndexedFrames
functionality** Updates from 5.1.3-beta-3**
5.1.3 update
This version brings the following changes
This version brings the following changes
This version brings the following changes
AsepriteCel
properties were made public (thanks @SephDB)AnimatedSprite
now supports setting frame both on initial play and during playback.
AnimatedSprite.SetFrame(int)
for API documentation on setting frame during playbackAnimatedSprite.Play(int?, int?)
for API documentation on setting initial starting frame during play.This version release brings in the following changes:
MonoGame.Aseprite.dll
assembly reference was required for the MonoGame.Aseprite.Content.Pipeline.dll
assembly in the mgcb-editor (Closes #76)TextureRegion.TryGetSlice
and TextureRegion.TryGetSlice<T>
methods added (credit: @fdrobidoux)This version brings in several changes and adds support for Aseprite 1.3-rc1. The following changes have been implemented.
AnimatedSprite
would cause an exception.AsepriteFileReader.Read(Stream)
method to support reading Aseprite file with TitleContainer
stream (Closes #49)PingPongReverse
loop direction added.Animatedsprite
instances are no longer coupled to the AnimationTag
used to create them. The AnimationTag
now is only used to create the AnimatedSprite
and after creation, properties such as AnimatedSprite.IsReversed
affect only that instance.AnimatedSprite.Speed
property added to control rate of animation speedAnimatedSprite.Play()
added.
AnimatedSprite
will need to be explicitly told to play using the AnimatedSprite.Play
method.