Activity : Build Your Own Pong Game
Introduction
In this activity you will create a basic pong game.
Duration
Instructions
Open up a new program area in Scratch or begin by remixing our
Pong Starter program.
If you are creating this program completely on your own:
Add a sprite for a ball that will be bouncing around on the screen

Add a sprite for the goal position a the end of the maze.

To get started, paint a backdrop with a solid colored bar along the bottom of the screen.

Put them all together so you have a simple pong game showing.

If you are using our sample starter code, take a look at what we have for these features.
Add one of the the following code samples to the paddle so that it can respond to the user's controls. so that it knows to start the game in it's starting location when the green flag is pressed.
Add the following code to the ball so that the player can move the ball around the maze.

Add the following code to the ball to have it move around the screen when the game starts
Add the following code to the ball to have it bounce off the paddle.
Add the following code to the ball to have it detect that it has missed the paddle and is on the bottom of the screen.
Great. Now you have a basic Pong game. Try some of these modifications.
How do you add difficulty to the game by adding speed to the ball every so often? (Hint, you can count bounces or use a timer)
How do you add difficulty by changing the size of the paddle every so often?
Make a variable to keep score.
Can you add in the concept of multiple lives?
What would you need to do to modify the code so that the ball looks at where it is on the screen to decide if it is on the bottom rather than looking for color?
The following blocks make great blocks to play around with as part of this game:
Things to think about when you are done
Sharing your project in the studio
The studio for this activity is located at:
Credits