Lesson Plan

Lesson: Space Breaker
Time: 45+ mins


In this lesson, campers will learn how to add timers and power ups to games as they complete tutorials, solve a puzzle module, and create their own Space Breaker game! Additionally, they'll have more practice coding Actors to react when touching other Actors or the edge of the screen. Coding concepts include timer, stop all, and set label.


  • Computer, laptop, or tablets (1 per camper)

New Code Blocks

  • : Start the program when the play button is selected.
  • : Keep repeating the blocks inside this loop forever.
  • : Repeat blocks inside this loop a specified number of times.
  • : Change the costume of the Actor.
  • : Pause the program for a specific number of seconds.
  • : If the condition is true, then run the code inside the block.
  • : Move the Actor a specified number of units.
  • : Rotate the Actor to the right (clockwise) by a specified amount.
  • : Make an Actor change direction if it is touching an edge of the screen.
  • : Point the Actor at the specified degree.
  • : Change the x-coordinate of an Actor by the specified number of units.
  • : React when the specified parameter is detected.
  • : Make the Actor disappear from the Stage.
  • : Make the Actor appear on the screen.
  • : Play the specified sound file and wait until it is finished playing.
  • : Stop running the current script.
  • : Set the text to the specified settings.
  • : Set the font's color to the specified color.
  • : Make the specified text appear above the Actor.
  • : Change the Stage's background to the one specified.


  • Code: The language that tells a computer what to do
  • Sequence: The order in which steps or events happen
  • Command: A specific action or instruction that tells the computer to do something
  • Actor: A Tynker character or object that can talk and interact with others
  • Stage: The background of the project where the Actors are placed
  • Loop: An action that repeats one or more commands over and over
  • Counting loop: A loop that repeats one or more commands a specific number of times
  • Infinite loop: A loop that repeats forever and does not end until the program stops
  • Condition: A logical expression that evaluates to true or false
  • Conditional statement: A type of statement that executes different parts of the code based on whether a logical expression evaluates to true or false


Campers will...
  • Use code blocks to add timers and power ups to games
  • Apply coding concepts to solve a puzzle
  • Create a Space Breaker game

Getting Started (5 minutes)

  • Tell campers that in some video and computer games, there is a time component or power ups. For example, in Super Mario World, the player has a specific number of seconds to complete a level. Super Mario World also uses power ups like mushrooms, flowers, or and feathers. Can anyone think of another example of games that use timers or power ups? Explain to campers that they're going to expand on this concept as they learn how to create games with timers and power ups.

Coding Activities (40+ minutes)

The lessons are intended for self-directed learning. Your role will be to facilitate as campers complete the Space Breaker module on their own:
1. Concepts (Video)
  • A friendly robot introduces three coding concepts:
    • Timer- Campers will learn that they can create games and projects that keep track of time. Make sure campers are exploring the given code blocks.
    • Stop All- Campers are instructed to click (for web)/tap (for mobile) the "stop all" code block to make the robot and Codey stop moving.
    • Set Label- Campers are provided with "set label" code blocks. Make sure they click (for web) or tap (for mobile) the code blocks and see how it affects the words above Codey's head.
2. Galactic Breaker 1 (Tutorial)
  • In this tutorial, campers will learn how to build a galactic breaker game. How to play: Use the arrow keys (for web) or tilt controls (for mobile) to control the paddle. The goal of the game is to hit the fireball with the paddle and make it collide with the objects towards the top of the Stage.
  • Coding activities include adding a space background and Actors to the Stage; animating the fireball; programming the fireball to detect if it's touching other Actors or objects; making the fireball turn clockwise when it touches Actors or objects; adding sound and costumes; animating the brick Actor; programming the brick Actor to explode when it touches the fireball; and making the game stop if the fireball touches the bottom edge of the Stage.
  • Make sure campers are reading the instructions carefully. Were they able to program the fireball to bounce off the platform and hit the planets? Did the fireball turn in a random clockwise direction when it bounced? Did the planets explode and play a sound when they were hit?
3. Galactic Breaker 2 (Tutorial)
  • In this tutorial, campers will learn how to add a timer and powerup to a game.
  • Activities include adding a space background and a score box Actor; resetting the timer and customizing the timer's font and font color; programming the search box to display the time; making the game stop at 30 seconds; and programming the power up Actor to reset the timer when it touches the comet.
  • After campers finish programming their project, ask them to test it out. Did the timer reset when the comet ran into the star?
4. Mission to Mars (Puzzle)
  • To solve this puzzle module, campers need to program the powerups to reset the timer when the ship collects them. After campers finish coding, ask them to use the arrow keys (for web) or tilt controls (for mobile) to navigate the ship to Mars.
  • Give a hint: Ask campers…
    • What does the powercell need to do? (Answer: When the powercell touches the ship, it needs to play a sound, reset the timer, then disappear.)
    • What code block makes the timer reset? (Answer: The "reset timer" code block.)
    • What code block will make the powercell disappear after it is touched? (Answer: The "hide" code block.)
5. Space Breaker (DIY)
  • In this DIY (do-it-yourself) project, campers will follow step-by-step directions and apply what they've learned so far to create their own Space Breaker game with timers and power ups!
  • Step 1 of the tutorial includes a completed example. How to play: Control the paddle using the arrow keys (for web) nor tilt controls (for mobile). Notice how there are four paddles! You control all of them in this game.
  • Activities include changing the background every 15 seconds, adding Actors, programming the paddle to move horizontally across the Stage, and programming the power ball to react when touching other Actors.
  • Steps 6-8 of the tutorial include bonus activities that encourage campers to make the bricks move, add 3 more paddles, and add a timer.

Wrap Up

Unplugged Activity: Discussion
Ask campers...
  • What are some advantages of adding power ups and timers to games? Can anyone think of disadvantages?
  • Did anyone try the Space Breaker bonus activities? What were some obstacles and successes you experienced?
This course is not part of your plan. Please upgrade to view all answer keys

Class Presentations

These student-facing slide presentations help educators seamlessly run Tynker lessons in a virtual or physical classroom setting. Each lesson has its own set of slides that introduce the big ideas, suggest unplugged activities, and include a section for each activity module. While running lesson slides, you can switch back and forth between the activity, the slides, answer keys and other lesson materials.
A sample slide presentation is available for your review. Please log in to view all the class presentations available with your plan..
Lesson 1
40 Slides
Lesson 2
Lights, Music, Action
23 Slides
Lesson 3
Frame-based Animation
26 Slides
Lesson 4
2D Motion
23 Slides
Lesson 5
Pen Drawing
23 Slides
Lesson 6
Alien Catcher
26 Slides
Lesson 7
Space Breaker
22 Slides
Lesson 8
Fish Tank
19 Slides
Lesson 9
Make Games - Animated Greeting Card
17 Slides
Lesson 10
Make Games - Music Video
15 Slides
Lesson 11
Make Games - Maze Game
18 Slides
Lesson 12
Make Games - 2-Player Battle Game
17 Slides
Lesson 13
Make Games - Animated Story
16 Slides
Lesson 14
Level Design
23 Slides