MonoGame.Aseprite 3.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package MonoGame.Aseprite --version 3.1.1
NuGet\Install-Package MonoGame.Aseprite -Version 3.1.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MonoGame.Aseprite" Version="3.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MonoGame.Aseprite --version 3.1.1
#r "nuget: MonoGame.Aseprite, 3.1.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. 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=3.1.1

// Install MonoGame.Aseprite as a Cake Tool
#tool nuget:?package=MonoGame.Aseprite&version=3.1.1

alternate text is missing from this package README image

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.

Package Manager CLI Install-Package MonoGame.Aseprite -Version 3.1.0

.NET CLI dotnet add package MonoGame.Aseprite --version 3.1.0

Documentation has not been updated as of this moment, however, all MonoGame 3.8.1 users can use the MonoGame 3.8 documentation for getting starting and installation information. This documentation can be found 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

//  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?

alternate text is missing from this package README image 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.

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 Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on MonoGame.Aseprite:

Package Downloads
MonoGame.Reload

Hot-reloading for MonoGame

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
6.0.3 124 4/2/2024
6.0.2 99 4/2/2024
6.0.1 96 4/2/2024
6.0.0 97 3/26/2024
5.1.3 132 3/13/2024
5.1.3-beta-3 134 1/16/2024
5.1.3-beta-2 81 1/12/2024
5.1.3-beta-1 69 1/12/2024
5.1.2 420 12/2/2023
5.1.1 527 9/28/2023
5.1.0 498 8/22/2023
5.0.1 374 3/28/2023
5.0.0 328 3/7/2023
4.0.6 265 3/1/2023
4.0.5 233 2/27/2023
4.0.4 243 2/27/2023
4.0.3 258 2/26/2023
4.0.2 270 2/22/2023
4.0.0 255 2/21/2023
3.1.1 420 11/21/2022
3.1.0 478 8/29/2022
3.0.0-prerelease 183 4/21/2022
2.0.5 581 5/4/2022
2.0.4.1 827 1/25/2021
2.0.3.3 578 12/12/2020
2.0.2-beta 263 12/10/2020
2.0.1-beta 262 12/8/2020
1.2.2 516 10/1/2020
1.1.1 768 4/11/2019
1.1.0 592 4/10/2019
1.0.0 796 9/30/2018

AnimatedSprite.Width and AnimatedSprite.Height now propertly take Scale into account.

AnimatedSprite.TryGetCurrentFrameSlice now takes Scale into account before returning SliceKEy