Module 2: Dodgeball
| Course: Scratch Programming | Level: Module 2 | Project 26 of 35 |
Official Raspberry Pi Project
This lesson is based on the official Raspberry Pi Foundation project. Open it alongside this guide to access the starter project, step-by-step instructions and community remixes.
### [🍓 Open "Dodgeball" on Raspberry Pi Projects →](https://projects.raspberrypi.org/en/projects/dodgeball)
How to use it: Click the link above, then click See Inside on the Scratch project to explore the finished version. Use Remix to get your own copy to edit.
What You Will Build
Make an action game where the player dodges moving objects.
What You Will Learn
By the end of this project you will be able to:
- Use Events blocks to start scripts and respond to clicks
- Combine Motion, Looks and Sound blocks to create behaviours
- Use variables to track game state and scores
- Apply the specific Scratch concepts introduced in Module 2
You Will Need
| Item | Details |
|---|---|
| 🌐 Browser | Any modern browser — Chrome, Firefox or Edge |
| 🔶 Scratch account | Free at scratch.mit.edu |
| ⏱️ Time | Approximately 30–45 minutes |
| 📋 Starter project | Available via the Raspberry Pi link above |
Step-by-Step Guide
- Create an arena backdrop.
- Add a player sprite controlled by the mouse or arrow keys.
- Add a ball sprite. Make it bounce off edges:
if touching edge: turn [180] degrees. - Start the ball at a random position and direction.
- If the player touches the ball: lose a life, flash, respawn.
- Add more balls as the score increases.
- Add a score that increments every second the player survives.
- Add a maximum of 3 lives before game over.
- Add a power-up that makes the player temporarily invincible.
- Add increasing difficulty: balls speed up every 10 seconds.
Extension Challenges
Try these after completing the main project:
- Add ball types: slow (safe), fast (dangerous), bomb (game over instantly).
- Add walls the player can hide behind.
- Create a two-player mode on the same keyboard.
Reflection Questions
- Which Scratch blocks did you use most in this project?
- What would you add or change if you had more time?
- How could you reuse the ideas from this project in a different context?
Share Your Work
When your project is complete, click Share in Scratch and post the link to your class or the Techbase community.
| ← Back to Scratch Course | Next: Lesson 27 → |