Even the simplest game concepts rely on knowing when one thing has hit another. This is known as collision detection and underpins everything from the ball hitting the bat in Pong to your 2d platformer character not falling through the ground.
This tutorial covers the basics of collision detection and explores the different ways you might implement it for various objects.