MonoGame.Aseprite
1.1.0
See the version list below for details.
dotnet add package MonoGame.Aseprite --version 1.1.0
NuGet\Install-Package MonoGame.Aseprite -Version 1.1.0
<PackageReference Include="MonoGame.Aseprite" Version="1.1.0" />
paket add MonoGame.Aseprite --version 1.1.0
#r "nuget: MonoGame.Aseprite, 1.1.0"
// Install MonoGame.Aseprite as a Cake Addin #addin nuget:?package=MonoGame.Aseprite&version=1.1.0 // Install MonoGame.Aseprite as a Cake Tool #tool nuget:?package=MonoGame.Aseprite&version=1.1.0
MonoGame.Aseprite
MonoGame.Aseprite is an extension for MonoGame Framework to import the .json file produced by Aseprite using the content pipeline, with a collection of classes to support rending the animation.
Getting Started
MonoGame.Aseprite is distributed via NuGet as a NuGet package. It can be installed inot your existing MonOGame project using NuGet Package Manger in Visual Studio. You can also use the following commands to install it.
Package Manager
PM> Install-Package MonoGame.Aseprite -Version 1.1.0
.Net CLI
> dotnet add package MonoGame.Aseprite --version 1.1.0
Once you've added the NuGet package, you'll also need to add a reference to MonoGame.Aseprite.ContentPipeline.dll in the Content Pipeline Tool. This file can be found in the "/packages/MonoGame.Aseprite.1.0.0/content" folder in the root directory of your project folder after installing the NuGet package.
For more information on doing this, check out this wiki page
Usage
The following is a brief explination of how to use this in your MonoGame project. For a more detailed explination, including images, please check the wiki
Export your spritesheet from Aseprite
- Select Array for meta information not Hash
- Frame Tags must be checked
- Slices must be checked
- Trim and Padding is currently not supported. These must be unchecked.
Add the exported spritesheet and associated .json file from Aseprite to your project using the MonoGame Pipeline Tool
- The spritesheet can be imported normally using the Texture importer and processor
- For the .json file, use the Aseprite Animation Importer and the Aseprite Animation Processor
Create a new AnimatedSprite object using the spritesheet and the animation definition.
- The animation defintion is loaded in your game using the content manger. It loads the .json file you imported.
// Be sure to add the using statement at the top using MonoGame.Aseprite; ... // Load the .json file AnimationDefinition animationDefinition = content.Load<AnimationDefinition>("animationDefinition"); // Load the sprite sheet Texture2D spritesheet = content.load<Texture2D>("spritesheet"); // Create the AnimatedSprite based on the animation definition and the sprite sheet AnimatedSprite animatedSprite = new AnimatedSprite(spriteSheet, animationDefinition);
What Next?
- Check out the wiki
- Read about using slices if you plan to do that
- Submit an issue on GitLab
- Hit me up on Twitter @manbeardgames if you have questions
License
Copyright(c) 2018 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 Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETFramework 4.5
- 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 | 157 | 9/27/2024 | |
6.0.7 | 274 | 8/19/2024 | |
6.0.6 | 183 | 7/16/2024 | |
6.0.5 | 221 | 5/31/2024 | |
6.0.4 | 122 | 5/2/2024 | |
6.0.3 | 171 | 4/2/2024 | |
6.0.2 | 159 | 4/2/2024 | |
6.0.1 | 115 | 4/2/2024 | |
6.0.0 | 134 | 3/26/2024 | |
5.1.3 | 174 | 3/13/2024 | |
5.1.3-beta-3 | 191 | 1/16/2024 | |
5.1.3-beta-2 | 129 | 1/12/2024 | |
5.1.3-beta-1 | 113 | 1/12/2024 | |
5.1.2 | 592 | 12/2/2023 | |
5.1.1 | 636 | 9/28/2023 | |
5.1.0 | 546 | 8/22/2023 | |
5.0.1 | 413 | 3/28/2023 | |
5.0.0 | 350 | 3/7/2023 | |
4.0.6 | 285 | 3/1/2023 | |
4.0.5 | 256 | 2/27/2023 | |
4.0.4 | 273 | 2/27/2023 | |
4.0.3 | 277 | 2/26/2023 | |
4.0.2 | 306 | 2/22/2023 | |
4.0.0 | 276 | 2/21/2023 | |
3.1.1 | 448 | 11/21/2022 | |
3.1.0 | 505 | 8/29/2022 | |
3.0.0-prerelease | 199 | 4/21/2022 | |
2.0.5 | 624 | 5/4/2022 | |
2.0.4.1 | 878 | 1/25/2021 | |
2.0.3.3 | 600 | 12/12/2020 | |
2.0.2-beta | 293 | 12/10/2020 | |
2.0.1-beta | 300 | 12/8/2020 | |
1.2.2 | 556 | 10/1/2020 | |
1.1.1 | 824 | 4/11/2019 | |
1.1.0 | 627 | 4/10/2019 | |
1.0.0 | 832 | 9/30/2018 |