UmbrellaToolsKit is a game framework made with MonoGame for personal uses, however you can feel free to use it.
namespace Project
{
public class Game1 : Game
{
//...
var scene = _gameManagement.SceneManagement.MainScene;
var gameObj = new GameObject();
gameObj.Sprite = Content.Load<Texture2D>("Sprites/picture");
scene.Middleground.Add(gameObj);
//...
}
}
Aseprite is a pixel art animation software. You can import its files using the steps below:
using UmbrellaToolsKit;
using UmbrellaToolsKit.Sprite;
public class Player : GameObject
{
//...
public AsepriteAnimation Animation;
public override void Start()
{
Animation = new AsepriteAnimation(Content.Load<AsepriteDefinitions>("Sprites/player_animation"));
Sprite = Content.Load<Texture2D>("Sprites/player");
//...
}
public override void Update(GameTime gameTime)
{
Animation.Play(gameTime, "walk", AsepriteAnimation.AnimationDirection.LOOP);
Body = Animation.Body;
//...
}
//...
}