An example of how to use the ECS part of the EnTT Framework
This is a tutorial on how to use the EnTT framework to make a game. This project is for people who are just starting out with EnTT and not too sure how use it.
The code isn't perfect. It could certainly be improved in some areas. Any kind of feedback is welcome. Be sure to ask me questions if something is unclear. The EnTT Gitter channel is a great place for discussion.
This uses the SDL2 Library for input and rendering. CMake will find it if it's on your system. For details on how to install SDL2, see the installation page.
If you're on MacOS,
brew install sdl2
If you're on a Debian based system,
sudo apt-get install libsdl2-dev
If you're on a Red Hat based system,
sudo yum install SDL2-devel
If you're on some other Linux system that doesn't have an SDL2 package, you'll have to build the source.
hg clone https://hg.libsdl.org/SDL SDL
cd SDL
mkdir build
cd build
../configure
make
sudo make install
If you're on Windows,
vcpkg install sdl2
The other dependencies (GLM, EnTT, Simpleton) are bundled with the project to make building this as easy as possible. On Windows, you'll need to specify the vcpkg toolchain file.
git clone https://github.com/Kerndog73/EnTT-Pacman.git
cd EnTT-Pacman/build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build .
./example
I read The Pacman Dossier many times during development. If you notice a difference between this game and the real thing, that wasn't an oversight. Perfectly recreating the real thing would have made this project quite a bit more complicated. I think it's complicated enough as it is!