MonoGame.Aseprite
3.1.1
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
<PackageReference Include="MonoGame.Aseprite" Version="3.1.1" />
paket add MonoGame.Aseprite --version 3.1.1
#r "nuget: MonoGame.Aseprite, 3.1.1"
// 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
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?
- Read the documentation.
- Join the Discord to ask questions or keep up to date.
- Submit an issue on GitHub.
- Follow me on Twitter @aristurtledev.
Sponsor On GitHub
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 | Versions 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. |
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.1.0 | 232 | 9/27/2024 | |
6.0.7 | 287 | 8/19/2024 | |
6.0.6 | 200 | 7/16/2024 | |
6.0.5 | 234 | 5/31/2024 | |
6.0.4 | 128 | 5/2/2024 | |
6.0.3 | 179 | 4/2/2024 | |
6.0.2 | 165 | 4/2/2024 | |
6.0.1 | 119 | 4/2/2024 | |
6.0.0 | 140 | 3/26/2024 | |
5.1.3 | 178 | 3/13/2024 | |
5.1.3-beta-3 | 193 | 1/16/2024 | |
5.1.3-beta-2 | 131 | 1/12/2024 | |
5.1.3-beta-1 | 117 | 1/12/2024 | |
5.1.2 | 621 | 12/2/2023 | |
5.1.1 | 642 | 9/28/2023 | |
5.1.0 | 550 | 8/22/2023 | |
5.0.1 | 419 | 3/28/2023 | |
5.0.0 | 355 | 3/7/2023 | |
4.0.6 | 289 | 3/1/2023 | |
4.0.5 | 260 | 2/27/2023 | |
4.0.4 | 277 | 2/27/2023 | |
4.0.3 | 281 | 2/26/2023 | |
4.0.2 | 310 | 2/22/2023 | |
4.0.0 | 280 | 2/21/2023 | |
3.1.1 | 452 | 11/21/2022 | |
3.1.0 | 509 | 8/29/2022 | |
3.0.0-prerelease | 201 | 4/21/2022 | |
2.0.5 | 628 | 5/4/2022 | |
2.0.4.1 | 886 | 1/25/2021 | |
2.0.3.3 | 604 | 12/12/2020 | |
2.0.2-beta | 295 | 12/10/2020 | |
2.0.1-beta | 302 | 12/8/2020 | |
1.2.2 | 560 | 10/1/2020 | |
1.1.1 | 830 | 4/11/2019 | |
1.1.0 | 631 | 4/10/2019 | |
1.0.0 | 838 | 9/30/2018 |
AnimatedSprite.Width and AnimatedSprite.Height now propertly take Scale into account.
AnimatedSprite.TryGetCurrentFrameSlice now takes Scale into account before returning SliceKEy