Key Details
Language: C++, SDL
Platform: Windows
Project Duration: 1 Month
Description
In my second year C++ module, i was given an assignment for a basic game to be made using a simple SDL based framework provided by the lecturer.
I decided I wanted to make a prison escape style game, wherein a player would have to navigate around a level, picking up collectibles, in order to reach a certain area in a given time without being spotted by the guards.
The framework given only included code for drawing basic images and primitives. The main thing that it was missing that I required in order to implement my game was a lighting system or support for alpha blending, as I needed a way to visualise the view cones of enemies in the level.
I therefore implemented a simple lighting system for the framework, that allowed me to additively edit the pixel values of a given screen surface according to inverse r-squared intensity drop-off. I also needed to implement a collision detection system as well as line of sight detection within a view cone for the enemies in order for the game to be possible.
I am overall very pleased with the finished product I was able to achieve, a product which is, I feel, both visually pleasing and fun to play.