Detecting and acting on a Collision.

Collision detection is one of the most fundamental mechanics in game development. Whether your player is dodging hazards, collecting items…