One-player pong Download

Roger Jaffe

scratch, variables, objects Student approved


Introduction

The one-­player version will replace one of the player paddles with a black wall from top to bottom. The wall will cause the ball to bounce back to the player. Since the wall “can’t miss,” the score will be the number of times the player successfully hits the ball back to the wall. When the player misses the first time, the game is over.

Your job is to design and write a Scratch program to create a one­player version of the 80s video game Pong. You can see what it looks like here

Design strategies:


Task

We will use the top­down design approach to design the complete Pong game. It will be comprised of several small pieces. The group will divide the work so that each group member will be responsible for implementing one (or more) of the pieces.

Your backdrop can look like this with the wall on the left and the player paddle on the right. (The drawing has an outline around it to make it show better here, but it doesn’t have to be on the backdrop)

Sample programs:

  1. Here is a sample program with a bouncing watermelon that demonstrates how to get a sprite to bounce off the edges of the backdrop
  2. Here is a sample program that demonstrates how to move through a backdrop but not go through walls.

Unit testing: Each group member create his or her own portion of the project on their own computer and tests it independently from the rest of the systems to make sure that it performs the functions required of it.

Integration testing: When all the components are completed and tested individually, they are integrated together and tested as one.

Scoring: Your project will be scored in several ways:


Related links