PONG (for 1 Player) Click Green Flag to start game and reset both Hits. Hit Space to reset Best Score. Alter the Ball Speed with the slider. The Paddle follows the Mouse Pointer left and right. The aim is to keep the Ball in play as long as you can, by hitting it with the Paddle before it hits the maroon line at the bottom of the screen.
Created by @gregatku for use in Coding Classes for Kids Unlimited, for whom I work as a Coding teacher. Originally the Paddle sat on the bottom (covering the game ending line), so "if on edge, bounce" gave realistic bouncing off the Paddle. Then we saved before and after directions of the ball in variables so we could display them, thereby using the computer to help us work out a rule for calculating the after Paddle hit direction, releasing the Paddle from the bottom.