Module 2: Clone Wars
| Course: Scratch Programming | Level: Module 2 | Project 28 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 "Clone Wars" on Raspberry Pi Projects →](https://projects.raspberrypi.org/en/projects/clone-wars)
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
Use Scratch cloning to manage many sprite instances that interact.
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 a space backdrop.
- Create one enemy ship sprite.
- When the flag is clicked:
repeat [10]: create clone of [enemy ship]. - Each clone: goes to a random position at the top, glides down at random speed.
- If a clone reaches the bottom: subtract a life from the player.
- Add a player spaceship controlled by arrow keys.
- Add a laser — when spacebar pressed: clone a laser sprite upward.
- If laser touches an enemy clone: delete both (laser and enemy), add to score.
- Spawn new enemy waves every time the previous wave is defeated.
- Add a boss enemy after every 3 waves.
Extension Challenges
Try these after completing the main project:
- Add different enemy types with different speeds and health.
- Add player power-ups that drop from defeated enemies.
- Add scrolling star background for depth effect.
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 29 → |