Programming 301 Lesson Plan

Lesson: Cloning
Time: 60+ mins

Introduction

Bring on the clones! In this lesson, students will use cloning to make copies of enemies and projectiles. Activities include programming a dragon to shoot lots of fireballs using cloning, cloning enemy planes for a dragon to fight, and creating a two-player battle game!

New Code Blocks

  • : Run the code attached to this block after an Actor has been cloned.
  • : Make a copy of the specified Actor.
  • : Delete this Actor if it is a clone.

Vocabulary

  • Cloning: Making multiple copies of the same Actor

Objectives

Students will...
  • Use code blocks to clone Actors
  • Use code blocks to solve a puzzle module
  • Create a 2-player battle game

Materials

  • Computers, laptops, or mobile devices (1 per student) with student account access to Tynker.com

Warm-Up (15 minutes)

1. Tell students that they’re going to learn about cloning today using Tynker.
2. Ask students what they think “cloning” means.
3. Clear up misconceptions and explain that on Tynker, cloning means making multiple copies of the same Actor. Explain they’ll learn more about this concept in the first module.

Activities (45 minutes)

Facilitate as students complete all Cloning modules on their own:
1. Concepts (Video)
  • Students will watch an interactive introduction where Dan introduces cloning concepts and cloning code blocks.
2. Clone Projectiles (DIY)
  • In this DIY (do-it-yourself) project, students will follow step-by-step directions to make the dragon shoot lots of fireballs using cloning.
  • How to play: To make the dragon shoot fireballs, press the spacebar (web) or tap the screen (mobile).
  • Point out to your students that cloning lets them create any number of identical Actors, and they only have to code the Actor once.
3. Cloning Enemies (DIY)
  • In this DIY project, students will expand on their cloning skills by cloning enemy planes for the dragon to fight.
  • Check that students are including the “delete this clone” code block in their project--too many clones could potentially slow down their computer’s speed.
4. Helicopter Dogfight (Puzzle)
  • To solve this puzzle module, students will need to program the dragon to shoot fireballs at helicopters. Students will also need to program the fireball clones to delete themselves. Students are provided a sample of what their end result should look like.
  • How to play: Tell students to move the dragon using arrow keys (web) or by tilting their device (mobile). Launch fireballs at the helicopters by pressing the spacebar (web) or tapping their screen (mobile).
5. Create an Attacker Game (DIY)
  • In this DIY project, students will expand on their project by programming enemy helicopters to fire lasers towards the dragon.
  • Are the lasers moving too quickly? Tell students to reduce the speed of the lasers by changing the value of the “wait” block.
6. 2-Player Battle (DIY)
  • In this DIY project, students will create a two-player battle game. This project is halfway complete--“Plane 2” is fully programmed, but students will need to program “Plane 1.”
  • Did students finish early? “Step 5” of the tutorial provides a list of ideas on how your students can improve their game.
7. Quiz (Multiple-choice)
  • Students will answer 5 multiple-choice questions to review concepts from this lesson.

Extended Activities (10 minutes)

Reflection
Ask students...
  • How would you describe “cloning” to a Tynker user that has never used cloning before?
  • What’s another situation where you will need lots of identical Actors on the Stage? (Example: You’re creating a sports game and need lots of cheering fans in the background.)
  • What’s another idea for a game that uses cloning?
  • What are some benefits of cloning Actors?

U.S. Standards

  • CCSS-Math: MP.1, MP.4, MP.7
  • CCSS-ELA: RI.7.4, RI.8.4, 6-8.RST.3, 6-8.RST.4, 6-8.RST.7
  • CSTA: 2-AP-10, 2-AP-13, 2-AP-16, 2-AP-17
  • CS CA: 6-8.AP.10, 6-8.AP.13, 6-8.AP.17
  • ISTE: 1.c, 1.d, 4.d, 5.c, 5.d, 6.b

U.k. Standards

Key Stage 3 (Years 7-9)
  • Understand several key algorithms that reflect computational thinking [for example, ones for sorting and searching]; use logical reasoning to compare the utility of alternative algorithms for the same problem.
  • Create, re-use, revise and re-purpose digital artefacts for a given audience, with attention to trustworthiness, design and usability.
  • Understand a range of ways to use technology safely, respectfully, responsibly and securely, including protecting their online identity and privacy; recognise inappropriate content, contact and conduct and know how to report concerns.
This course is not part of your plan. Please upgrade to view all answer keys

Class Presentations

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..
Lesson 1
Introduction
27 Slides
Lesson 2
Animated Motion
20 Slides
Lesson 3
Actor Positioning
19 Slides
Lesson 4
Motion and Tracking
18 Slides
Lesson 5
Conditional Loops
23 Slides
Lesson 6
Show and Hide
20 Slides
Lesson 7
Actor Properties
18 Slides
Lesson 8
Nested Loops
18 Slides
Lesson 9
Messaging
21 Slides
Lesson 10
Start Screen and Controls
21 Slides
Lesson 11
Shoot Projectiles
21 Slides
Lesson 12
Parallax Scrolling
18 Slides
Lesson 13
Cloning
19 Slides
Lesson 14
Variables
20 Slides
Lesson 15
Powerups and Effects
20 Slides
Lesson 16
Boss Battle
18 Slides
Lesson 17
Finishing Touch
15 Slides