ScratchData LogoScratchData
Back to gregatku's profile

Pong (follows Mouse)

GRgregatku•Created October 16, 2016
Pong (follows Mouse)
3
4
391 views
View on Scratch

Instructions

PONG (follows Mouse) Click Green Flag to start game and reset 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.

Description

Created by @gregatku for use in Coding Classes for Kids Unlimited, for whom I work as a Coding teacher. Uses "if on edge, bounce" to make the ball Bounce off the Paddle at a realistic angle, by on detection of contact, pushing the Ball to the edge to force a correct direction change and then moving sufficient distance in that new direction to be clear of the Paddle (so multiple Hits are not registered during the Ball's enforced passage "through" the Paddle).

Project Details

Project ID125930596
CreatedOctober 16, 2016
Last ModifiedApril 28, 2025
SharedDecember 31, 2016
Visibilityvisible
CommentsAllowed