Chase

Objective

Create a game using HTML and Javascript in which the player, the orange circle, chases and attempts to catch the yellow circle.

Problem

The main issue was to get the game to stop when the two circles to made contact.

Solution

By getting the positions and radiuses of both circles and doing a couple of equations with them I was able to get the circles to make contact and get the game to stop when that occurs.