Skip to content
EzzElDin Salah — home
Games
Games

2D Game in C++

Object-oriented 2D game with real-time physics, collision detection, and enemy AI that tracks the player and takes evasive action.

  • C++
  • Game AI
  • Game Physics

Systems implemented

  • Real-time physics and collision detection, written directly rather than taken from an engine — which means the broad-phase checks, the response, and the timestep are all decisions that had to be made explicitly.
  • Enemy AI with player tracking and evasion, so the agent both pursues and retreats depending on state. Two competing behaviours in one agent is where naive AI starts oscillating, and resolving that is the real work.
  • Object-oriented design across entities, giving the game a structure that survives adding a new entity type.

Built in C++ without a game engine. Written before the Unity coursework, and useful contrast with it: the Unity projects are about composing engine systems, this one is about building them.

2d-game-cppUpdated 2026-07-25