Snake++
A downloadable game
Snake made in c++. Conforms to the c++ core guidelines and bootcamped by Ulf Benjaminsson for exceptionally clean coding practices.
For this class we were meant to code snake in the cleanest, leanest way possible. In every script we had to link to the specific C++ Core Guidelines we were adhering to. Our code needed to be readable, our comments had to be sharp and our architecture impeccable.
The screenshots show excerpts which I'm most proud of.
- The first is of the `UpdateBodyPosition()` function, which took a lot of work to condense.
- The second shows a prime example of RAII.
- The last two images demonstrate how I use objects to make complex functionality easier to use. Obtaining InputData is a rather order dependent task, while in practice a user only needs to call `GetKey(Scancode::SDL_SCANCODE_LEFT)` without understanding the complexity underneath.
View the code for this project here on GitHub!
Status | Released |
Author | Casey Hofland |
Tags | snake |