READ REFLECT WRITE
Lesson 4: Shapes and Randomization
In this lesson students continue to develop their familiarity with Game Lab by manipulating the width and height of the shapes they use to draw. The lesson kicks off with a discussion that connects expanded block functionality (e.g. different sized shapes) with the need for more block inputs, or “parameters”. Students learn to draw with versions of
rect() that include width and height parameters. They also learn to use the
background() block. At the end of the progression students are introduced to the
randomNumber() block. Combining all of these skills students will draw a randomized rainbow snake at the end of the lesson.
Students will be able to:
- Use and reason about drawing commands with multiple parameters
- Generate and use random numbers in a program
- Parameter – An extra piece of information passed to a function to customize it for a specific need
Warm Up (5 min)
Shapes of Different Sizes
Activity (40 min)
Transition: Go to Code Studio
Wrap Up (5 min)
Journal: Reflect on your development of the five practices of CS Discoveries (Problem Solving, Persistence, Creativity, Collaboration, Communication). Choose one of the following prompts to respond to:
- Choose one of the five practices in which you believe you demonstrated growth in this lesson. Write something you did that exemplified this practice.
- Choose one practice you think you can continue to grow in. What’s one thing you’d like to do better?
- Choose one practice you thought was especially important for the activity we completed today. What made it so important?
TRY THE LESSON 4 CHALLENGE