Curipod placeholder

Lesson 19: Velocity

Profile picture of mcruz-farooqi

mcruz-farooqi

Updated 4 months ago

Share
Plays
0
Copies
0
Students
--

Content

Preview

Lesson description

his lesson launches a major theme of the chapter: that complex behavior can be represented in simpler ways to make it easier to write and reason about code. After a brief review of how they used the counter pattern to move sprites in previous lessons, students are introduced to the idea of hiding those patterns in a single velocity block. Students then head to Code Studio to try out new blocks that set a sprite's velocity directly, and look at various ways that they are able to code more complex behaviors in their sprites. Over the next several lessons, students will see how this method of managing complexity allows them to produce more interesting sprite behaviors. Question of the Day: How can programming languages hide complicated patterns so that it is easier to program?

Suggested content