Use Snap! to create a maze where
the character responds to user input
Completed
Starting Project Research
Revisiting Portfolios
Basics of HTML & CSS
UX / UI Overview
Today
Block-based Programming
Interaction between User & Software
Upcoming
More Project Work
No typing today.
Boolean: a value that is either True or False
Today, we're going to create a little interactive maze. You won't complete the maze directly, instead, you'll guide a little character through the maze. To start with, let's create the character.
Now that we have the character, the next bit is to create the maze for them to navigate through.
For this part, you'll learn how to let different sprites interact with each other. Sprites can communicate via the “broadcast”-block. It broadcasts a message to all sprites and every sprite that has one or more “When I receive (message)” hat blocks with the corresponding message, reacts accordingly.
You can create a new message by clicking on the input slot of the “broadcast” or “When I receive” block and select “new...” or pick one of the existing messages of your project from the same dropdown menu.
While moving through the previous video, you also learned how to check for “physical” sprite interaction with the “touching”-predicate. You can select another sprite of your project from the block’s dropdown menu. This type of value is called a Boolean value. Booleans are important terms in computer science. The block then reports “true”, whenever the currently selected sprite is touching the sprite indicated in the input slot and “false” otherwise.
What else can we do?
On your slide for today add your:
- Video of your working maze program.