Module 1: Lost in Space
| Course: Scratch Programming | Level: Module 1 | Project 20 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 "Lost in Space" on Raspberry Pi Projects →](https://projects.raspberrypi.org/en/projects/lost-in-space)
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
Animate a spaceship adventure across multiple star-field backdrops.
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 1
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 3 space backdrops: near Earth, asteroid belt, deep space.
- Add a spaceship sprite with thrust animation costumes.
- Control the ship with arrow keys: rotate left/right, thrust forward.
- Add inertia: instead of stopping instantly, gradually slow down.
- Add asteroid sprites that float across the stage at random angles.
- If the ship touches an asteroid: lose a life, flash the ship, respawn at start.
- Add fuel canisters that float by — collect them to refuel.
- Add a planet destination. When reached: switch to the next backdrop.
- After 3 backdrops: show a
Mission Completescreen. - Add a score based on time taken and lives remaining.
Extension Challenges
Try these after completing the main project:
- Add a black hole that pulls the ship towards it using gravity math.
- Add a shield pickup that protects from one asteroid hit.
- Add alien ships that pursue the player.
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 21 → |