top of page
c++Img.PNG

Game Engine Creation

This was made in my second year using C++ and OpenGL. For this module I had to create a dodge ball game and a different game using a ball. In this project I created various classes such as object renderer, collision classes, textures classes and more.

Features in the game:

​

The first level is a dodge ball game where you start at one end and have to make it to the other end without hitting the balls. You have four lives before you fail, and every time you hit a ball it follows behind the player to show how many they have hit.

​

​

The balls spawn at random points and each start with a different speed and height to each other. The balls also have velocity which helps them bounce and slow down in the direction their facing.

​

There is a collision class which has been put on the player and the balls so they can detect each other.

​

​

​

​

​

​

​

​

​

The second level is a target shooter where the player presses 'W' and a ball shoots forward from the player.

​

Each target was made using an object class which makes and renders it in the game. Using this class in the game class I was able to make a for loop to make multiple of them with different random positions.   

​

​

​

​

​

​

​

​

​

Other features:

​

Game screen manager, which manages transitioning through scenes.

Sound manager, which is used for when the balls bounce and when a target has been shot.

Other collisions i.e. for when the balls hit the ground they bound, and if a ball hits a target it gets destroyed.

​

Link to Github for the code: https://github.com/StuartWright/cpp-Game

​

​

​

bottom of page