top of page

CMP105: Games Programming

1058.jpg
10513.jpg
1057.jpg

Module Brief: Design and develop a sprite-based computer game.

The project required the use of C++ and SFML without the use of additional libraries or game engines.

 

I developed a 2D top down, stealth action game, inspired by the “Metal Gear” franchise. A major mechanic of Metal Gear games is stealth with the aim of the player sneaking past guards to complete their objective and so that is the main focus of this game.

Throughout the game there are Guard enemies that have a patrol route that they will follow via a list of waypoints. The player can learn the path and take that into account when playing. I gave each guard a cone of vision so if player stepped inside the cone, the guard would attack until the player had escaped. Instead of using a solid cone which would pass and detect the player on the other side of wall, I used a custom made raycast function to give each guard a cone of vision, which was blocked by solid objects.

The game includes several levels which the player can move between. There is a wide array of objects that the player can interact with scattered throughout the game, such as explosive barrels, guns, and health items. The player can either avoid or fight the guards. In order to win, the player must rescue a scientist and destroy a Metal Gear in a boss battle, using weapons collected throughout the game.  

bottom of page