Star Student Builder logoStar Student Builder
← Real Games Std 6–8Project 1 of 4

Pong, Properly

🎯 A ball bounces, a paddle follows the mouse, the score rises and the game ends when you miss.

πŸ’‘ The idea behind it

Bouncing is just reversing a direction β€” and a game needs a clear beginning, middle and end.

🧱 Blocks you will need

foreverif on edge, bouncepoint in directiontouching?set score to 0stop all

πŸ”¨ Build it

  1. Paddle: forever β†’ set x to (mouse x). One block, and it feels perfect.
  2. Ball: point in direction (pick random βˆ’45 to 45) β†’ forever β†’ move 10 steps β†’ if on edge, bounce.
  3. Add: if touching paddle β†’ point in direction (direction Γ— βˆ’1) β†’ move 10 steps. That last move stops it sticking.
  4. Draw a red line along the bottom. If touching red β†’ say 'Game over' β†’ stop all.
  5. Add a score that rises on each paddle hit, and speed that rises with it.

πŸš€ Make it harder

  • Add bricks to break, using clones.
  • Add a second player on the keyboard for the top paddle.

🐞 Bugs you will hit

  • The ball sticks to the paddle and vibrates: it is still touching when the direction flips. Add a 'move 10 steps' immediately after the bounce.
  • The ball goes straight up and down and the game is boring: your starting direction has no sideways component β€” use a random direction that is not near 0 or 180.

⬇ Need Scratch itself?

Free from MIT, in a browser or as an offline app that needs no connection at all.

Get it β†’
Ask GuruAcharya Samayeshwar