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:

  1. Moving continuously in a particular direction (downwards) and deleting that ghost clone, when they reach the edge of stage.
  2. Deleting a ghost clone when a clone of bullet (fired from the rocketship) touches them.
  3. 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
  1. Give a brief recap of the activities carried out so far, in the past two sessions.
Lecture Slide
Activity: Creating multiple ghosts and assigning actions to them 30
  1. Ask students to open the previous file of Space Battle Game  within PictoBlox on the computer.
  2. Demonstrate the procedure given in the Space Battle Game – Part 3 Activity Sheet to the students.
  3. Ask the students to follow the instructions to create the project.
  4. At the end of the activity, the teacher must check if all the students have created the project and provide feedback accordingly.
 Lecture Slide, PictoBlox File  and

Activity Sheet

Concluding the session 5
  1. Make sure that all the students save their script properly before closing PictoBlox.
  2. Give a summary of the points covered in the lecture.
Lecture Slide
Things to Remember
Before Class
  1. Make sure each PC has the latest version of PictoBlox installed and running.
  2. 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
  1. If the students are unable to find a block, point them to the color of the block on the block palette.
  2. Make sure they write the script by selecting the appropriate sprite.
After Class
  1. Make sure students save their codes/scripts.
  2. Make sure they shut down the PC/Laptops.