Simple helper library to development 2D games with MonoGame using ECS (Entity-Component-System) game architecture.
using Microsoft.Xna.Framework.Graphics;
using Curupira2D;
using Curupira2D.ECS;
using Curupira2D.ECS.Components.Drawables;
namespace Sample
{
public class Game1 : GameCore
{
public Game1() : base() { }
protected override void LoadContent()
{
SetScene<MyScene>();
base.LoadContent();
}
}
public class MyScene : Scene
{
public override void LoadContent()
{
var characterTexture = GameCore.GraphicsDevice.CreateTextureCircle(10, Color.Red);
CreateEntity("character", ScreenCenter)
.AddComponent(new SpriteComponent(characterTexture));
base.LoadContent();
}
}
}| Name | Link |
|---|---|
| MonoGame | https://github.com/MonoGame/MonoGame |
| Aether.Physics2D.MG | https://github.com/nkast/Aether.Physics2D |
| TiledLib.Net | https://github.com/Ragath/TiledLib.Net |