Entity system written from scratch. Code mostly based on this article by David Colson.
However, there are two key design changes:
- Scene scales automatically with the addition of new entities.
- Component pools don't allocate memory for components that don't exist. David Colson himself recognizes this as a potential problem at the end of his article and discusses potential ways to solve it.
The project uses CMake, so the build process is straightforward.
git clone https://github.com/Z0RIK/ecs
cd ecs
mkdir build
cd build
cmake -S ..
cmake --build .
The example project is a very basic implementation of a particle system.
If you want to play around with the example, I recommend building the project with --config=Release
to improve performance.