Determining when objects on the screen touch is an important aspect of most games. In this workshop we'll look at how the Pythagorean Theorem and the Distance Formula can be used to measure the distance between two points on the plane, and then decide whether those two points (or game characters) are touching.
Once this mathematical basics are understood, we will use them to develop an easy game in which a blue ball has to be flung towards a yellow one as many times as possible in 30 seconds. The blue ball will bounce on screen borders and the yellow one will reappear in a random place every time it is crashed by the blue.
Coding is fun!!! Enjoy coding!!!