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:


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

  1. Create a space backdrop.
  2. Create one enemy ship sprite.
  3. When the flag is clicked: repeat [10]: create clone of [enemy ship].
  4. Each clone: goes to a random position at the top, glides down at random speed.
  5. If a clone reaches the bottom: subtract a life from the player.
  6. Add a player spaceship controlled by arrow keys.
  7. Add a laser — when spacebar pressed: clone a laser sprite upward.
  8. If laser touches an enemy clone: delete both (laser and enemy), add to score.
  9. Spawn new enemy waves every time the previous wave is defeated.
  10. Add a boss enemy after every 3 waves.

Extension Challenges

Try these after completing the main project:


Reflection Questions

  1. Which Scratch blocks did you use most in this project?
  2. What would you add or change if you had more time?
  3. 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