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

  • Physics and collision detection written from scratch, with no engine, so the collision checks, the response and the timestep were all mine to decide.
  • Enemy AI that chases the player and backs off depending on its state. The hard part was getting one agent to switch between two opposite behaviours without jittering back and forth.
  • Object-oriented design across the game's entities, so adding a new kind of entity doesn't mean rewriting the rest.

Built in C++ without a game engine, before the Unity coursework. The Unity projects are about putting engine systems together; this one was about writing them.