Agent Click
C++ SFML | Git Code Repo
Agent Click is my take on the point & click adventure genre made from scratch in C++ using SFML. It includes A* pathfinding, custom depth maps and my own animation system.
​
The depth maps are particularly interesting, because all the 3D environments are just recorded screenshots taken of a 3D environment inside unity, objects wasn't originally scaled as they move away from the camera as SFML only, out of the box, supports 2D based movement. To get the player correctly scaled I created an editor tool inside Unity that raycasts on each pixel of the camera store the distance and parses the numerical float into a RGBA colour. This can then be loaded as any other texture into memory and is referenced as the player moves around to check what is pixels are ground and how far away the player is from the camera.



Agent Click gave me chance to improve my low-level engine skills, required when creating a C++ game from scratch, and forced me to employ out-of the box problem solving. This codebase although not perfect showcases realistic long-term reusable, expandable code.​​
You can look the entire game's code below in the github repo.