Lesson: Time Limits
Time: 60+ mins
IntroductionIn this lesson, students will create arcade games that include a time limit! Students will also reinforce messaging code blocks as they build a 2-player game.
: Terminate all scripts in the project. : Broadcast a message to all Actors in the program. : Send a message to an Actor, with the specified parameters. : Set the Actor’s size to the specified value.
- Use code blocks to set a time limit for a game
- Create an arcade game
- Computers, laptops, or mobile devices (1 per student) with student account access to Tynker.com
Warm-Up (15 minutes)Lead a mini-discussion with your students:
- Raise your hand if you’ve played an arcade-style game like Tetris or Flappy Bird. Keep you hand raised if the game you’re thinking of included a time limit.
- What is the purpose of including time limits in games?
- If you created an arcade game, what would the game be about? What’s the goal? What would you include to make the game challenging? Would you include a time limit? Why or why not?
Activities (45 minutes)Facilitate as students complete all Time Limits modules on their own:
1. Time Limits Example (Example)
- Students will view a project of a game with a time limit, which they’ll create their own version of in the next module!
- Check that students are clicking (web) or tapping (mobile) the spaceship to launch a laser at the alien before time’s up!
- In this DIY (do-it-yourself) module, students will program a game with a custom timer! Activities include programming the Stage to count down and stopping all scripts in the program.
- Note that the timer can be altered both by changing the number inside the "repeat" block and changing the number in the "wait" block.
- Emphasize to students that the phrase "Game Over" can be replaced with something like "You have survived for 10 seconds!"
- Did students finish early? Encourage them to modify the Stage so it says how many seconds are left on the timer.
- To solve this puzzle module, students will need to rearrange the broadcast blocks in the correct order.
- Are students struggling? Ask them to try broadcasting the messages in a different sequence.
- Students will view a digital version of a classic arcade cabinet with button controls! Ask students to click (web) or tap (mobile) the buttons on the Stage to see how it affects the cowboy.
- Students will create a classic arcade machine with button controls. Activities include adding the cowboy’s "dance" animation and fixing the "attack" button.
- Did students finish early? Encourage them to modify the "wait" block to speed up the cowboy’s animations.
Extended Activities (10 minutes)Encourage students to use vocabulary terms and mention specific code blocks while answering the following questions:
- What are some ways we can modify the "Time Limit" project to make it better?
- What are some ways we can modify the "Make Your Own Arcade" project to make it better?
- What is a sequence? (The order in which steps or events happen) Who can give an example of a sequence?
- CCSS-Math: MP.1
- CCSS-ELA: RF.1.1, RF.2.4, RF.2.4.A, RF.3.4.A, RF.4.4.A, RI.2.6
- CSTA: 1B-AP-10, 1B-AP-11, 1B-AP-15
- CS CA: 3-5.AP.12, 3-5.AP.13, 3-5.AP.17
- ISTE: 1.c, 1.d, 4.d, 5.c, 5.d, 6.b
These student-facing slide presentations help educators seamlessly run Tynker lessons in a virtual or physical classroom setting. Each lesson has its own set of slides that introduce the big ideas, suggest unplugged activities, and include a section for each activity module. While running lesson slides, you can switch back and forth between the activity, the slides, answer keys and other lesson materials.
A sample slide presentation is available for your review. Please log in to view all the class presentations available with your plan..
Loops and Animation
Creating a Scene
Jumping over Obstacles
Music and Animation
Instruments and Tempo
Message Driven Programming
Pop the Balloon
Animation with Movement