Project: Making a Mini-Game in Scratch
Combining what we have learnt, we make a game: we steer a hero, dodge obstacles and collect points. We practise planning, building and testing a project.
All topics (11 of 11)
Chapter 1. Algorithm Basics
Chapter 2. Programming in Scratch
Chapter 3. Project Work
Work on a project starts with planning. First write the idea of the game in one sentence: “The cat catches apples falling from the top.” Then decide on the characters (a hero, an apple), the controls (arrow keys), the scoring rule and the condition for the game to end.
Build the project in parts. 1) Pick a backdrop and sprites. 2) Make the basket move left and right (an event and a change of x). 3) Let the apple fall from above: it appears at a random x position and reduces y (the “pick random −1 to 10” block helps). 4) If the apple touches the basket, add 1 to the score; if it hits the ground, take 1 off the lives.
The game also needs an ending condition: when lives reaches 0, the sprite says “Game over” and the “stop all” block runs. To make it more exciting, let the apples fall faster and faster: raise the speed for every 5 points. Adding sounds and costumes makes the game feel alive.
Let others try the finished game and ask what they think. Note down which parts were unclear or too hard, and fix them. At the end, name and save your project and show it to your classmates.
Key takeaways
- A project starts with an idea and a plan.
- Build a project in small parts and test each one.
- A game needs a score, lives and an ending condition.
- Feedback from others helps to improve the project.
Practice tasks
- Write a plan for your own game: the idea, characters, controls, score and ending condition.
- Build the first part of the “Catch the apple” game: the basket moves with the arrow keys.
- Let a classmate try your game and write down at least one suggestion for improvement.
Review questions
Test yourself: think first, then reveal the answer.
1Where should a project start?Show answerHide answer
With writing down the idea and a plan.2How does the game end?Show answerHide answer
When the value of `lives` reaches 0, the “stop all” block runs.3Why let other people try the game?Show answerHide answer
To see the errors and hard parts they find, and improve the game.
0 of 11 topics completed
Sign in to mark