Learn how to make a classic Ping game.

A random Y co-ordinate is selected. The puck glides to that co-ordinate.
It either hits the bat or the ball.
A new Y co-ordinate is selected and the puck goes back. It starts again. A fail safe mechanism is designed to stop the rebounding puck scoring a point.
Project code is here.


Be Sociable, Share!