|
Computer Science Home
6th Grade Tech Ed
7th Grade Computer Science
8th Grade Computer Science A
Gmail
Google Drive
Google Classroom
Infinite Campus
Typing.com
(Join Class through Google Classroom)
Schoology
Code.org
Tynker Coding Website
Tynker Resource Page
Tynker Online Support Video Help
Quizlet | Quizlet LIVE
Everfi
Khan Academy
Social Media Tips
Netsmartz
Code HS
Karel the Dog class code: 1251
CSTA Standards
ISTE Standards
|
Changing Size (Lesson 3)
Introduction
In this lesson, you will use Pen commands to create a line jumping game between two racers and will learn how to make an Actor bigger or smaller!
New Code Blocks
- : Change the size of an Actor by the given percentage value.
- : Run code attached to this block when you press a specified key.
- : Run code attached to this block when the Actor is clicked. Note: this block is titled “when actor touched” for mobile version.
- : Set the size of an Actor to the given percentage value.
Objectives
...
- Use Pen commands to create a jumping game
- Use code blocks to change the size of Actors
Warm-Up (15 minutes)
- You’re going to learn two different ways to change the size of an Actor using Tynker!
- Think about video or computer games where a character or object changes its size.
*
For example, perhaps an object increases in size during a boss scene, or maybe an object increases in size as it gets closer to a character.
- What other scenarios can you think of where a character or object in a video or computer game changes its size?
Activities (45 minutes)
1. Introduction (Video)
- A space alien introduces the “change size by” code block. Emphasize to students that p
***positive values will make the Actor bigger
**
while negative values will make the Actor smaller
- Click the different “change size by” blocks to see how different values affect Codey.
2. Jump Enemy Lines Example (Example)
- In this module, you will play a completed Jump Enemy Lines project, where you’ll need to avoid touching the purple laser! You’ll create your own version of this project in the next module.
- Click the red stop button to move on to the next module.
3. Jump Enemy Lines (DIY)
- In this DIY (do-it-yourself) module, follow step-by-step directions to program a racer to jump over the line of another racer.
- How to play:
- On Web: Control the racer by holding down the mouse button, and make the racer jump by pressing the spacebar.
4. Line Hopper (Puzzle)
- To solve this puzzle module, need to program the racer to jump over enemy lines. Collect three orbs and avoid the enemy lines to win!
- Give a hint: Tell students to attach a “forever if” block below the “on start” block.
- Optional: Ask students, “Which pen block makes the racer start drawing?” (“pen down”)
5. Change Size Example (Example)
- In this module, watch a completed Change Size project. you’ll create their own version of this project in the next module!
- Tell students to click (web) or tap (mobile) the cars and watch how the size changes.
6. Change Size (DIY)
- In this DIY project, program car Actors to grow or shrink when clicked on (web) or tapped (mobile). you will also learn two different ways to use the “change size by” and “set size to” code blocks.
- Describe the cars’ size differences as you grew or shrunk.
7. Quiz (Multiple-choice)
- answer 5 multiple-choice questions to review concepts from this lesson.
Extended Activities (10 minutes)
- What are two different code blocks we can use to change the size of an Actor
(“change size by” and “set size to”)
- What pen block makes an Actor draw?
(“pen down”)
- Describe a situation when we could use the “pen down” code block
- What pen block makes an Actor stop drawing?
(“pen up”)
- Describe a situation when we could use the “pen up” code block
- Give an example of positive values?
- True or false: Using a positive value inside a “change size by” code block will make the Actor bigger.
- Give an example of negative values.
- True or false: Using a negative value inside a “change size by” code block will make the Actor smaller.
U.S. Standards
- K-12 CTSA Computer Science Standards (Revised 2017)
Computer Science Teachers Association:
- 1B-AP-10
- 1B-AP-11
- 1B-AP-12
- 1B-AP-15
- 2-AP-12
- 2-AP-13
- 2-AP-15
- 2-AP-16
- 2-AP-17
CCSS-Math: MP.1
- CCSS-ELA: RF.5.4.A, 6-8.RST.3, 6-8.RST.4, 6-8.RST.7
- CS CA: 3-5.AP.10, 3-5.AP.12, 3-5.AP.13, 3-5.AP.14, 3-5.AP.17, 6-8.AP.12, 6-8.AP.13, 6-8.AP.16, 6-8.AP.17
- ISTE: 1.c, 1.d, 4.d, 5.c, 5.d, 6.b
|