Languages: C++
Technologies:
Skills:
This game is a 2D survivors-like. The player must survive for 2 minutes, with the main game loop being based around picking up power ups which heal and empower your attacks. You gain points every second you survive as well as for killing enemies, with tougher enemies giving more points. More enemies spawn as time goes on, making the end a frantic race to survive.
The project’s brief was to implement a “2D survivor like game” using C++ without using the standard library or any external libraries (a wrapper class GamesEngineeringBase.h provided a pixel-based canvas and frame delta timing system). It was required to implement:
World is an abstract class containing a Player, as well as dynamic arrays of Enemies, Projectiles and
Powerups. World is responsible for updating all of its children, as well as serializing and deserializing them
in Save and Load respectively. It also contains the logic for collision detection between characters and tiles in
TryMove.
FixedWorld and InfiniteWorld implement World, and the respective serialization required for them.
InputHandler and Canvas are wrappers around GamesEngineeringBase::Window, providing helper
functions for input and drawing images. Player and the various enemies are responsible for
managing their state.
Camera is responsible for rendering a single world, and uses its CameraTarget to determine the camera
position.
Tile is responsible for loading and serializing the tile data, as well as applying said data to characters.
TimedSurvivalManager (and StressTester) is responsible for the main game loop, spawning enemies and
scoring etc. They use EnemyFactory to spawn enemies. There are commented out defines in Player.h and
Canvas.h, which allow for GodMode and rendering beyond the screen borders