Leçon 1,
Chapitre 1
En cours
Pictoblox coding – Space Battle Game – Part 3
Yann KIDSHAKER 19 mars 2026
Session 4: Space Battle Game – Part 3
Objectives
After this lesson, students will be able to:
- Write the code to create clones (of ghosts) to the Space Battle Game.
- Assign actions to these clones (of ghosts).
- Add functionality to their code, to shoot down these ghosts by firing bullets from their Rocketship.
- Finish building the Space Battle Game and hence their first project in the PictoBlox environment.
Introduction
In this session, we finally finish building the project of Space Battle Game, that we have been working on since past two sessions. We guide students in writing two scripts for the sprite Ghost.
The first script will be for continuously creating multiple ghosts (clones of ghost) in the game. The second script will be for assigning the following actions to these ghosts:
- Moving continuously in a particular direction (downwards) and deleting that ghost clone, when they reach the edge of stage.
- Deleting a ghost clone when a clone of bullet (fired from the rocketship) touches them.
- Stop the game when a ghost touches the Rocketship. That would be, Game Over!
Activity
Make the Ghosts come down towards the rocketship. If a bullet fired from the rocketship touches a ghost, that ghost must get deleted. The ghost must also be deleted, when it touches the edge. If a ghost touches the Rocketship, the game must stop.

Teaching Resources
PicoBlox Code
| Title | Description | File |
|---|---|---|
| Space Battle Game – Part 3 | Creating multiple ghosts and assigning actions to them | https://ai.thestempedia.com/wp-content/uploads/2022/03/space-game.sb3 |
Timeline
| Title | Approximate Duration | Procedure | Reference Material |
|---|---|---|---|
| Recap of the previous session | 5 |
|
Lecture Slide |
| Activity: Creating multiple ghosts and assigning actions to them | 30 |
|
Lecture Slide, PictoBlox File and
Activity Sheet |
| Concluding the session | 5 |
|
Lecture Slide |
Things to Remember
Before Class
- Make sure each PC has the latest version of PictoBlox installed and running.
- Make sure, all the students have the script of Space Battle Game from the previous two sessions prepared on their device and they are not lagging behind.
During Class
- If the students are unable to find a block, point them to the color of the block on the block palette.
- Make sure they write the script by selecting the appropriate sprite.
After Class
- Make sure students save their codes/scripts.
- Make sure they shut down the PC/Laptops.