Skip to content
Day 36 - Finish Pong

Day 36 - Finish Pong

Friday, March 6, 2026

Today's Objectives

  • I can create artwork in Scratch using primitive tools like lines, circles, and rectangles.
  • I can write code in Scratch to allow a player to move.
  • I can write code in Scratch to allow objects to move on their own.

Warmup: Check your work from yesterday

There are two checkpoints in today’s warmup. Complete both.

If you need your Scratch account details, see Mr. Willingham.

Yesterday, we created the following artwork. Check yours… Use the Paint a Sprite tool to make them if needed…

Paint a Sprite

  1. A perfectly round ball. Hold down the shift key while drawing a circle.
  2. A vertical rectangle for player 1’s paddle.
  3. A vertical rectangle for player 2’s paddle.
The BallPlayer 1’s PaddlePlayer 2’s Paddle
The BallPlayer 1’s PaddlePlayer 2’s Paddle

Checkpoint: 1. Artwork

  1. I have confirmed all of the artwork is correct.
  2. optional - I have created a background for the game.

The code for the ball is the following.

when green flag clicked
go to x: (0) y: (0)
point in direction (pick random(0)  to (360))
forever
  move (10) steps
  if on edge, bounce

The code for one of the paddles is the following.

when [w v] key pressed
change y by (10)

when [s v] key pressed
change y by (-10)

The code for the second paddle is the same, but with different keys.

when [up arrow v] key pressed
change y by (10)

when [down arrow v] key pressed
change y by (-10)

Checkpoint: 2. Code

  1. I have confirmed all of the code is correct.

Work Session: Bounce off Paddles and Scoring

We’ll work together to add the following features to our game:

  • The ball bounces off the paddles.
  • A player scores a point when the ball goes past the opponent’s paddle.

Checkpoint: Work Session

  1. I have added code to make the ball bounce off the paddles.
  2. I have added code to keep track of the score for each player.

Closing: Discuss the Group Project

On Monday, you will pick your groups. We’ll discuss some of the project now, but we’ll have more time to discuss it on Monday.
Last updated on