PD-ECS is a very small, very basic ECS intened for use in small games. I'm writing it to support small games I'm making for Panic's Playdate. Be warned it's extremeley bare bones, very much not thoroughly tested, and might blow up!
- Add
ecs.handecs.cto your project. - Optionally, you can use your build system to define some variables:
ECS_MAX_ENTITIES: the maximum number of entities supported by the ECS;ECS_MAX_COMPS: the maximum number of components that can be registered on an entity;ECS_MAX_SYSTEMS: the maximum number of systems that can operate.
- That's it!
For an example of how to actually use it in your code, have a look at example.c.
It's extremely basic, but should give you an idea of how to get started!