DLT:
  • Explain how the draw loop allows for the creation of animations in Game Lab
  • Use the draw loop in combination with the randomNumber() command, shapes, and sprites to make simple animations
  • Use code blocks to program Actors to send and receive messages
  • Create an adventure game

Activities:
  • Code.org Lesson 12: The Draw Loop - In this lesson, students are introduced to the draw loop, one of the core programming paradigms in Game Lab. To begin the lesson students look at some physical flipbooks to see that having many frames with different images creates the impression of motion. Students then watch a video explaining how the draw loop in Game Lab helps to create this same impression in their programs. Students combine the draw loop with random numbers to manipulate some simple animations with dots and then with sprites. Students should leave the lesson understanding that the commands in the draw loop are called after all other code but are then called repeatedly to create animation. Complete all of the challenge activities in parts 6 and 8.

  • Tynker 301 Messaging - In this lesson, students will learn how to program Actors to send and receive messages, create a victory message, and create their own adventure game! Coding concepts from this lesson include: When I Receive, Broadcast and Send Message To. Due by the end of class.