انتقل للمحتوى
Robo EgyptRobo Egypt
☰ Course contents

The idea and the design

Section 13: The final project: catch the appleLesson 13.1 · ⏱ 8 min
🎯 Project goal
A whole game: an apple falls, and a basket catches it with your finger or by tilting. Every apple is a point, you have 3 hearts, and every 3 apples the game gets faster. When the hearts run out the game is over, and the “Again” button starts it again.
A row with the score and the “Again” button, and under it a canvas with 🧺 and 🍎
A row with the score and the “Again” button, and under it a canvas with 🧺 and 🍎
  • Three variables: score for the points, lives for the hearts, and speed for the apple's speed.
  • Five events: the app opening, the timer, the finger dragging, touching, and the “Again” button.

📌 Another example: the game at a slower speed

The same design, and the apple falls 4 instead of 6: easier for little ones.

The design
The design
The blocks
The blocks
In the lab: playing
In the lab: playing
✍️ Practise
Make the example yourself: put the parts in “🎨 Design”, then the blocks, and tap ▶ Run.
✍️ Practise here in the lessonor open the lab in a new page ↗

🎯 Challenge yourself

Easy

Change the basket to 🪣 and the apple to 🍊.

👀 Show the solution
The design
The design

Result: the new design.

Medium

A green background for the canvas, and a white title colour.

👀 Show the solution
The design
The design

Result: a new look.

Hard

Add a “Pause” button that stops the falling (a variable: on/off).

👀 Show the solution
The design
The design
The blocks
The blocks
In the lab
In the lab

Result: the apple stopped.

Finished the lesson? Mark it so your progress counts.