Space Cadet

Students learn coding concepts as they solve these puzzles to help their astronaut through the space journey. Request Quote

Course Summary
  • Grades 1 - 2
  • Beginner level
  • 8 lessons
  • Tynker Blocks
    • Web iPad
Course Includes
  • 8 lessons
  • 48 activities
  • Enhanced Creativity Tools
  • Automatic Assessment
  • Tutorials and Reviews
  • Coding Puzzles
  • DIY Projects
  • Quizzes
  • Answer Keys
Prerequisites
No previous coding experience required.

Lesson Plan

Course: Space Cadet
Lesson 6: Asteroids
Number of Levels: 5
Time: 30+ mins

Introduction

Did you know that your student can use different events, like touching or tilting their screen, to program their characters to collect spaceship parts and dodge asteroids? In this lesson, students will learn about four event code blocks: touch, collision, tilt, and messaging. Note: The program must be playing for these events to activate.

New Code Blocks

  • : Run the code attached to this block when the user touches the Actor.
  • : Run the code attached to this block when the tablet is tilted to the right.
  • : Run the code attached to this block when the tablet is tilted to the left.
  • : Send a message to all the characters at once.
  • : Listen for a broadcast before activating.
  • : Move the character a specified number of units.
  • : Make the character say the specified message for a specific amount of seconds.
  • : Make the spaceship move to the left of the screen.
  • : Make the spaceship move to the right of the screen.
  • : Make the spaceship collect the power cells.
  • : Make the spaceship launch a laser.
  • : Make the spaceship blow up.

Vocabulary

  • None

Objectives

Students will...
  • Sequence blocks of code to create algorithms
  • Use event code blocks to solve puzzles

Materials

  • iPads (with installed Tynker app), computers, or laptops

Warm-Up (5 minutes)

Prepare students for today's coding adventure by reviewing the following events:
  • Touch: This event runs the code attached to it when the Actor is touched.
  • Bump: This event runs when a character collides with something ​
on the screen.
  • Tilt: The two tilt events (left and right) run the code attached to ​
them when the tablet is tilted to the right or left.
  • Messaging: Students can use messaging to have characters trigger code ​
in other actors, sending “messages” to each other.

    Provide students with real-world examples, such as...
    - A toaster oven turns off (event) once it dings or a stopwatch timer buzzes
    - A referee blows their whistle (event), notifying the players to stop the game
    - The school's first bell rings (event), notifying the students that it's time to go to class.

Activities (30 minutes)

Facilitate as students complete all Asteroids modules:
Asteroids
  • Inform students that this lesson has 5 levels that they need to complete.
  • Students are introduced to the following events:
    • Touch: This event runs the code attached to it when the Actor is touched.
    • Bump: This event runs when a character collides with something ​
on the screen.
    • Tilt: The two tilt events (left and right) run the code attached to ​
them when the tablet is tilted to the right or left.
    • Messaging: Students can use messaging to have characters trigger code ​
in other actors, sending “messages” to each other.
  • After students finish coding level 1, they’ll play this program as a game. Make sure students tap the screen to make the character jump and avoid the slug.
    • Troubleshooting: If students are having difficulty beating the game because the animation moves too fast, make sure that 1x is set on the coding screen (shown below) to make the game run at normal speed.

  • In level 2, make sure students are attaching the correct command block to the event code blocks. The "jump" code block should be attached to the "on tap" event code block. The "collect power cell" code block should be attached to the "on bump" event code block.
  • After students program level 3, they'll play this program as a game! Students need to tilt their device left or right to make the spaceship avoid asteroids, tap will fire. Once the spaceship collides with an asteroid, it's game over.
    • Troubleshooting: If students are having difficulty beating the game because the animation moves too fast, make sure that 1x is set on the coding screen (shown below) to make the game run at normal speed.

  • Level 4 introduces the concept of broadcasts, which allow you to coordinate action among different characters. Attach the broadcast “fly away” to the “on start” block.
  • Level 5 is a DIY (do-it-yourself) project where students can use the provided code blocks to program their own space animation using events! Emphasize to students that they can attach as many or as few code blocks as they like. Students can program up to four different characters: Cadet, Alien, Slug, and Trio. To program the characters, students need to first select the character on the left side of the screen. Next, they can add the provided code blocks to program the Cadet, Alien, Slug, or Trio.

Extended Activities (10 minutes)

Discussion
Ask your students…
  • What are the different events you used in today's coding activities? (Answer: touch, bump, tilt, and messaging)
  • Do you have a favorite event code block? Why is it your favorite?

U.S. Standards

  • CCSS-Math: K.CC.B.4, K.CC.B.5, 1.OA.B.3, 2.OA.B.2, MP.1
  • CCSS-ELA: RF.K.4, RF.1.4, RF.2.4, RF.1.4.A, RF.2.4.A, 1.RI.10, 2.RI.10
  • CSTA: 1A-AP-09, 1A-AP-11
  • CS CA: K-2.AP.13, K-2.AP.14
  • ISTE: 1.c, 1.d, 4.d, 5.c, 5.d, 6.b

U.K. Standards

Key Stage 1
  • Use logical reasoning to predict the behaviour of simple programs
  • Use technology safely and respectfully, keeping personal information private; identify where to go for help and support when they have concerns about content or contact on the internet or other online technologies
Key Stage 2
  • Design, write and debug programs that accomplish specific goals, including controlling or simulating physical systems; solve problems by decomposing them into smaller parts.
  • Use logical reasoning to explain how some simple algorithms work and to detect and correct errors in algorithms and programs.
  • Understand computer networks, including the internet; how they can provide multiple services, such as the World Wide Web, and the opportunities they offer for communication and collaboration.
  • Use technology safely, respectfully and responsibly; recognise acceptable/unacceptable behaviour; identify a range of ways to report concerns about content and contact.