top of page

C++ Engine

C++ Games Engine

This was my first entirely code based project.

SDL and OpenGL had a steep learning curve as I had never used either one before, but once I had grasped them, the rest of the engine started flowing smoothly.

I created two sample games. In the first, your aim is to get from one side of the basketball court to the other without getting hit by four balls. them to fire projectiles.

In the second, the player competes against a basic AI in a shooting contest. A stall is in front of the player, and they must use regular FPS controls to shoot as many targets as they can.

Features

Component Based System

New components can easily be created and added to GameObjects for whatever funtionallity may be required. I built many of the components that would be expected in a games engine, including:

  • Colliders - sphere and box

  • Mesh renderer

  • Transform - position, scale and rotation

  • Trigger volume

  • Camera

I also created manager classes to handle the following:

  • Level transitions

  • Input

  • Collisions

  • Rendering

  • GameObjects

An example of a custom script being used can be seen in GameScreenLevel2, in which the "Shooter" script is attached to the player, allowing them to fire projectiles.

bottom of page