Resources
Resources
  • Home
  • MYP 1
    • World Of Advertising
    • Dream Room
  • MYP 2
    • Load It Up!
    • Game Design
    • Biomimicry
  • Student Resources
    • Creative Commons
    • Chrome Apps
    • Design Cycle
  • Home
  • MYP 2
  • Game Design
  • Design Lessons
  • Lesson #3

Lesson #1 Lesson #2 Lesson #3 Lesson #4 Lesson #5

Scratch Code Tips Timeline

Lesson #3 – Maze

In this lesson, you will create a simple maze game.
Write a program that includes:
  • 1 Your own sprite in the costume editor
  • 2 Program the sprite to move (using arrow keys or WASD)
  • 3 The sprite cannot walk through the maze walls (see code blocks in variation #2)
  • 4 There is a “dangerous element” the sprite must avoid (e.g., moving enemy, traps, or hazards) –(see code blocks in variation #2).

Variation 2

The variation 2 program below is our end goal…
Your program can look completely different, as long as it incorporates the same key principles.

 

Video Tutorial

We’ll start by learning the basics of building a simple maze game, and then we’ll add the more advanced features later, like walls the sprite can’t pass through and obstacles to dodge.
Watch the video tutorial below (this video shows how to make “Variation 1).
Recreate the basics in your own Scratch program.

Variation 1

The tutorial shows you how to create a maze that will send you back to the start if you touch the wall.

Now we’ll improve the game to include:
  • Walls that block the sprite’s movement instead of sending it back to the start
  • A dangerous obstacle in the maze

Variation 2

Open the Variation 2 program below and click “See Inside.”

 

Carefully look at the code blocks and include them in your program.

 

How does the code make sure the sprite doesn’t pass through walls?

 

We will use the following block between each arrow key movements, using “x” for left and right, “y” for up and down

 

What is controlling the movement or behavior of the danger in the maze?

 

You can copy the clone blocks in the project below, but how you solve it is up to you, so be creative!

 

Screenshot 2015-01-28 10.17.21Check out the code blocks.

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
SAVE & ACCEPT