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

Touching: catch the star

Section 9: GamesLesson 9.3 · ⏱ 14 min
🎯 Project goal
A star falls from the top, and a basket moves with your finger or by tilting the phone. Every time the basket catches the star you get more points.
The design: a canvas with two sprites: the basket 🧺 and the star ⭐
The design: a canvas with two sprites: the basket 🧺 and the star ⭐
The blocks in Robo Apps
The blocks in Robo Apps
We played for 9 seconds and caught 3 stars
We played for 9 seconds and caught 3 stars
  • when Sprite2 touches Sprite1 works the moment the star touches the basket.
  • 📱 tilt moves the basket right and left. On the computer use the arrow keys.
  • If the star reaches the bottom of the canvas it goes back to the top in a random place.

📌 Another example: catch the apple with a sound

Every apple you catch: a point and a coin sound.

The design
The design
The blocks
The blocks
In the lab: collecting apples
In the lab: collecting apples
✍️ 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

The star falls, and when it goes out at the bottom it comes back from the top.

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

Result: it falls and comes back.

Medium

When you catch the star: a point and a “Well done” message.

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

Result: the points go up.

Hard

Every 3 stars the falling gets faster.

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

Result: after 3 stars: Faster!

Finished the lesson? Mark it so your progress counts.