MonoGame.Aseprite 2.0.5

.NET Standard 2.0 .NET Framework 4.5
There is a newer prerelease version of this package available.
See the version list below for details.

Requires NuGet 3.3.0 or higher.

Install-Package MonoGame.Aseprite -Version 2.0.5
dotnet add package MonoGame.Aseprite --version 2.0.5
<PackageReference Include="MonoGame.Aseprite" Version="2.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MonoGame.Aseprite --version 2.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MonoGame.Aseprite, 2.0.5"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install MonoGame.Aseprite as a Cake Addin
#addin nuget:?package=MonoGame.Aseprite&version=2.0.5

// Install MonoGame.Aseprite as a Cake Tool
#tool nuget:?package=MonoGame.Aseprite&version=2.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

MonoGame.Aseprite

MonoGame.Aseprite is an extension for the MonoGame Framework that allows you to import Aseprite .ase/.aseprite files into your game project using the MGCB Editor (also known as the Content Pipeline Tool).

No need to export a sprite sheet from Aseprite and have to deal with a PNG image file and a JSON file. With MonoGame.Aseprite the import process takes the single Aseprite file and generates a AsepriteDocument object, containing a Texture2D generated sprite sheet and all the data you need to animate those sweet pixels in game.

MonoGame.Aseprite also provides an out-of-the-box AnimatedSprite class that can be used with the imported AsepriteDocument to get you started quickly if you prefer this as well.

Getting Started

MonoGame.Aseprite is distributed via NuGet as a NuGet package. It can be installed into your existing MonoGame game project using NuGet Package Manger in Visual Studio.

For MonoGame 3.7.1 (.NET Framework >= 4.5) users, please refer to the installation documentation at https://aristurtle.net/monogame-aseprite/getting-started/monogame37installation

For MonoGame 3.8 (.NET Core) users, please refer to the installation documentation at https://aristurtle.net/monogame-aseprite/getting-started/monogame38installation

Example Usage

The following is a quick example of using MonoGame.Aseprite in your game.


Add Using Statements

using MonoGame.Aseprite.Documents; using MonoGame.Aseprite.Graphics;


Load the Content

// Load the AsepriteDocument AsepriteDocument aseDoc = Content.Load<AsepriteDocument>("myAseFile");

// Create a new AnimatedSprite from the document AnimatedSprite sprite = new AnimatedSprite(aseDoc);


Update the AnimatedSprite Instance

sprite.Update(gameTime);


Drawing the AnimatedSprite

sprite.Render(spriteBatch);

What Next?

GitHub Sponsers Support

Hi, my name is Christopher Whitley. I am an indie game developer and game development tool developer. I create tools primary for the MonoGame framework. All of the tools I develop are released as free and open-sourced software (FOSS), just like this Monogame.Aseprite library.

If you'd like to buy me a cup of coffee or just sponsor me and my projects in general, you can do so on GitHub Sponsors at https://github.com/sponsors/manbeardgames

License

Copyright(c) 2022 Chris Whitley

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.0-prerelease 46 4/21/2022
2.0.5 59 5/4/2022
2.0.4.1 540 1/25/2021
2.0.3.3 352 12/12/2020
2.0.2-beta 169 12/10/2020
2.0.1-beta 149 12/8/2020
1.2.2 300 10/1/2020
1.1.1 492 4/11/2019
1.1.0 384 4/10/2019
1.0.0 539 9/30/2018

Premultiply Alpha is now applied to Color values since this is the default expected in MonoGame.