Lesson Plan

Lesson: Make Games - Maze Game
Time: 45+ mins

Introduction

In this a-maze-ing lesson, campers will apply what they've learned so far to create a game where they'll navigate an Actor through a maze. How to play: Use the arrow keys (for web) or tilt controls (for mobile) to navigate the Actor. "Step 8" of the tutorial includes a bonus activity that encourages campers to add sound effects.

Equipment/Materials

  • 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.
  • : If the condition is true, then run the code inside the "if" section. Otherwise, run the code inside the "else" section.
  • : Animate the character to perform a specified action.
  • : This is a comparison operator that returns true if the first value is greater than the second value, and returns false otherwise.
  • : Point the Actor at the specified degree.
  • : Move the Actor a specified number of units.
  • : Set how an Actor behaves when it rotates.
  • : Listen for a message or broadcast from other scripts before activating.
  • : React when the specified parameter is detected.

Vocabulary

  • Coding: Using a computer language to tell the computer what to do
  • Sequence: The order in which steps or events happen
  • Actors: Tynker characters and objects that can talk and interact with each other
  • Command: A specific action or instruction that tells the computer to do something
  • Stage: The background of the project where the Actors are placed
  • Animation: Changing costumes (pictures) of an Actor many times to give the illusion of movement
  • Loop: An action 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

Objectives

Campers will...
  • Use code blocks to create a maze game

Getting Started (5 minutes)

  • Tell campers that they will be creating a music video with dancing Actors and special effects. Next, open the "Maze Game" module and play the provided example in Step 1 of the tutorial:

  • Optional: Ask campers to draw their own maze on paper.

Coding Activities (40+ minutes)

The lessons are intended for self-directed learning. Your role will be to facilitate as campers complete the Make Games - Maze Game modules on their own:
1. Introduction (Video)
  • A friendly robot tells campers that they can decide which game they'd like to create next.
  • Tell campers to press any key to continue on to the next module.
2. Music Video (DIY)
  • Campers will follow the step-by-step tutorial to create their very own maze game with obstacles, enemies, special effects, and more!
  • Activities include adding a background and Actors; designing the maze; programming Actors to react when touching other Actors; programming enemy Actors to chase the player; adding an exit or end goal object (for example, a coin or a door); and adding music or sound effects.
  • Step 8 of the tutorial includes a bonus activity that encourages campers to add sound effects to their game.

Wrap Up

Unplugged Activity: Discussion
Review today’s coding adventure by leading a discussion. Ask campers:
  • What other maze themes can you think of? (Example: A dog needs to walk through city streets to find a bone. An adventurer is exploring an ancient ruin in search of lost treasure. An astronaut needs to reach the escape pod.)
  • Did anyone add sound effects to their game? How’d you do it?
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
Introduction
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