CppGame

This was a simple game created in C++. I tried to create a mini entity-component gmae engine for the game so that the project wouldn’t be stuck as a one-off and instead the code could be re-used in other projects.

For this game, I created a maze game featuring:

  • Doors (Suzanne heads) are opened by picking up keys (donuts) and walking into the doors.
  • Created my own obj loader. It does require triangulation and texture coordinates, but was fun to do regardless.
  • First person camera control through SDL.

Gameplay:

Current Issues:

  • Collisions are pretty broken. Currently, they work okay until you towards a corner of a mesh and then you can slip through. Also while holding a key, a user is able to walk through meshes if the key enters first.
  • The camera still is not perfect. I had never created my own camera up until this point. To get my glm::rotate to work correctly, I am doing relative transformations rather than absolution. This change didn’t fit my Transform design at all and is currently a hack.

Source Code: Here