Skip to content

Simple Snake game made in C++ with the SDL2 and EnTT libraries.

License

Notifications You must be signed in to change notification settings

masonrg/SnakeGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake with EnTT

Snake game made in C++ with the SDL2 and EnTT libraries.

snake_gameplay

Details

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.

External Libraries

SDL2

The SDL2 library is used for rendering as well as input and event handling.

SDL2_image

The SDL2 Image library is used for reading image files such as jpg or png.

SDL2_ttf

The SDL2 TTF library is used for reading .ttf files and generating textures from text.

EnTT

The EnTT library provides an Enitity Component System (ECS) that is the primary driver of gameplay and is the focus of the project.

About

Simple Snake game made in C++ with the SDL2 and EnTT libraries.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published