Snake game made in C++ with the SDL2 and EnTT libraries.
This project was created in order to gain experience with C++ programming and to learn how to use the Entity Component System aspect of the EnTT library. The project was created for educational purposes, and so the code and structure might leave a bit to be desired. Being new to C++, I hope I didn't break too many conventions or do anything too unusual.
In any case, I hope this project might serve as a useful resource to others who are perhaps new to c++ and entt, as I was when creating it.
The SDL2 library is used for rendering as well as input and event handling.
The SDL2 Image library is used for reading image files such as jpg or png.
The SDL2 TTF library is used for reading .ttf files and generating textures from text.
The EnTT library provides an Enitity Component System (ECS) that is the primary driver of gameplay and is the focus of the project.