All Projects → manbeardgames → monogame-aseprite

manbeardgames / monogame-aseprite

Licence: MIT license
MonoGame framework extension to import animations from Aseprite

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to monogame-aseprite

aseprite-macos-buildsh
Automated script to create latest release app (either beta, or release whichever is newer) of Aseprite for macOS
Stars: ✭ 143 (+169.81%)
Mutual labels:  aseprite
ACViewer
Viewer / Utility for DAT files for the game Asheron's Call
Stars: ✭ 19 (-64.15%)
Mutual labels:  monogame
Comora
A simple 2D camera for Monogame.
Stars: ✭ 71 (+33.96%)
Mutual labels:  monogame
MonoGame.Primitives2D
Easy-to-use 2D primitives
Stars: ✭ 44 (-16.98%)
Mutual labels:  monogame
UI Engines
Engine specific libraries for Empty Keys UI
Stars: ✭ 52 (-1.89%)
Mutual labels:  monogame
AsepriteAddons
Lua scripts for Aseprite add-ons.
Stars: ✭ 45 (-15.09%)
Mutual labels:  aseprite
pribambase
Paint pixelart textures in real time in Blender with Aseprite.
Stars: ✭ 129 (+143.4%)
Mutual labels:  aseprite
Apos.Content
Content builder library for MonoGame.
Stars: ✭ 14 (-73.58%)
Mutual labels:  monogame
hevadea
🗺 A game about exploring a randomly generated world.
Stars: ✭ 29 (-45.28%)
Mutual labels:  monogame
Apos.Shapes
Shape rendering in MonoGame.
Stars: ✭ 21 (-60.38%)
Mutual labels:  monogame
Landlord
Landlord was a planned roguelike game, which may yet be completed one day if I decide I am willing to re-approach it.
Stars: ✭ 40 (-24.53%)
Mutual labels:  monogame
aseprite-scripts
Some useful scripts for Aseprite
Stars: ✭ 23 (-56.6%)
Mutual labels:  aseprite
OpenNFS1
Remake of the original EA Need for Speed 1 using c# and Monogame
Stars: ✭ 157 (+196.23%)
Mutual labels:  monogame
LDtkMonogame
Monogame renderer and importer for LDtk Level editor
Stars: ✭ 43 (-18.87%)
Mutual labels:  monogame
CTR-tools
Crash Team Racing (PS1) tools - a C# framework by DCxDemo and a set of tools to parse files found in the original kart racing game by Naughty Dog.
Stars: ✭ 93 (+75.47%)
Mutual labels:  monogame
Transform
Base Monogame objects for managing relative transforms.
Stars: ✭ 19 (-64.15%)
Mutual labels:  monogame
cocos2d-mono
Continuation of Cocos2D-XNA project, with focus on MonoGame
Stars: ✭ 18 (-66.04%)
Mutual labels:  monogame
AnodyneSharp
A rewrite of the game Anodyne in Monogame
Stars: ✭ 14 (-73.58%)
Mutual labels:  monogame
Wallop
Extensible, living/animated wallpaper engine built in C# using Silk.NET's OpenGL wrapper at its core.
Stars: ✭ 27 (-49.06%)
Mutual labels:  monogame
FiniteStateMachine
This project is a finite state machine designed to be used in games.
Stars: ✭ 45 (-15.09%)
Mutual labels:  monogame

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 2.0.4.1

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

For MonoGame 3.7.1 (.NET Framework >= 4.5) users, please refer to the installation documentation here.

For MonoGame 3.8 (.NET Core) users, please refer to the installation documentation here.

For those that are migrating from version 1.2.2 to version 2.0.3 you can find the migration documentation here.

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?

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].