Week 5 Lesson 1
Today we will learn how if-then-else and sensing work in computer games.
55 minutes
1 - Warm Up (5 min)
2 - We Do (5 min)
3 - Turn & Talk (5 min)
4 - UCSD Does (5 min)
5 - We Do (15 min)
6 - You Do (15 min)
7 - Reflect & Share (5 min)
WARM UP
Pairs, Groups,
Whole Class
1
(5 min)
This week we will be using sensing blocks. Let's think about how we sense things during our school day.
How do you sense that it is time for school to start?
If I see ___________, then ___________.
If I hear___________, then ___________.
WE DO
2
(5 min)
As a class, let's use TIPP and SEE to learn how the project works.
Click on the Scratch project.
Locate the Title and read it.
Locate the Instructions and read them.
Locate the Purpose and read it.
Play the project.
Locate See Inside and click on it.
Identify all Sprites and Events.
Explore the code.
Turn & TALK
3
(5 min)
In the Scratch project, the cheesy puff sprites should ask the user questions to earn points. However, the project doesn't work correctly. What is the problem and how do you think you can fix it?
The problem is _________.
I think we need to program _________.
How is the sensing block used in the maze? Use the anchor chart to help you explain.
In this project, when the mouse touches the maze walls_____________.
UCSD DOES
4
(5 min)
you do
6
(15 min)
Open the Week 5 Student Hyperdoc provided by your teacher.
Open the project under the "You Do" section in your hyperdoc.
Play the project.
Add quiz questions for the other cheesy puff sprites.
Add code for when the mouse touches the gold coin.
do MORE
Can you add a mouse trap that you have to avoid?
What happens if the mouse touches the mouse trap?
Make sure you have shared your project with your teacher using your hyperdoc.
File -> Save to your computer to save your program for later.
(How To)
Reflect & Share
7
(5 min)
Today in Scratch, we used sensing blocks to direct the mouse through the maze and if-then-else blocks to ask the user questions along the way.
Partner A: Share your project and talk about your process.
Today I _______. Let me show you...
Partner B: Respond to your partner with feedback.
I see you were able to ________.
Can you tell about how you ________?
Switch roles!