|
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
|
Lesson 14 Projectiles
It’s time for some target practice! In this lesson, students will learn how to use impulses to shoot projectiles at multiple targets.
New Code Blocks
- : React when the Actor touches another Actor while using the physics engine.
Vocabulary
- Projectile: A moving object (initially launched by a force), where the only force acting upon it is gravity
Objectives
- Use code blocks to program projectiles
- Create games that shoot projectiles at targets
Think About it
- Describe an impulse? (Example: A strong, sudden force)
- Who can give an example of a projectile? (Example: A cannonball launching out of a cannon)
- Does gravity pull objects towards or away from Earth’s center? (Answer: Towards)
Lessons
1. Static Objects Example (Example)
- Students will play a completed Static Objects game. They’ll create their own version of this game in the next module!
- How to play: Tell students to press the arrow keys (web) or tilt their device (mobile) to move the ball. Can they make the ball reach the highest platform?
- Tell students to press the red button to move on to the next module.
2. Static Objects (DIY)
- In this DIY (do-it-yourself) project, students will program a game that uses static and stationary Actors.
- Students will need to program the platforms to be static and active.
3. Physics Cannon Example (Example)
- Students will play a completed Physics Cannon game. They’ll create their own version of this game in the next module!
- How to play: Tell students to press the spacebar (web) or tap the screen (mobile) to launch a cannonball at the falling targets.
4. Physics Cannon (DIY)
- In this DIY project, students will program a cannon firing game.
- Activities include programming the cannon to point towards the mouse (web) or touch location (mobile) and programming the cannon to launch a cannonball.
- Did students finish early? Ask them to complete the bonus section in “Step 3” of the tutorial which encourages students to increase the impulse applied to the cannonball. What happens when your students change the value of their “apply impulse” code block to 350 instead of 150?
5. Aim the Cannon (Puzzle)
- To solve this puzzle module, students will need to program the cannonballs to hit their corresponding colored targets.
- Give a hint: Ask students…
- When a numbered button is pressed, where should the cannonball go? (Answer: It should go to the cannon.)
- In what direction should the cannonball point? (Answer: The cannonball should point in the same direction as the cannon.)
6. Physics Projectile Example (Example)
- Students will play a completed Physics Projectile game where they’ll try to hit the bombs with the cannonball. They’ll create their own version of this project in the next module!
7. Physics Projectile (DIY)
- In this DIY project, students will create a target practice game that uses multiple gravity settings.
- Activities include programming the cannon to aim at the mouse (web) or touch location (mobile), launching the cannonball, and programming bombs to explode when hit by a cannonball.
8. Shoot the Targets Example (Example)
- Students will play a completed Shoot the Targets game. They’ll create their own version of this project in the next module!
- How to play: Arm the cannon by pressing the numbers “1,” “2,” and “3” on the keyboard (web) or tapping the colored balls (mobile). The balls will automatically fire towards the mouse-pointer (web) or touch location (mobile) after two seconds.
- Can your students hit each colored target with the same colored cannonball?
9. Shoot the Targets (DIY)
- In this DIY project, students will create a target shooting game that uses three different colored cannonballs.
- The pink and orange cannonballs are already programmed for your students. They will need to program the blue cannonball.
U.S. Standards
- K-12 CTSA Computer Science Standards (Revised 2017)
Computer Science Teachers Association:
- 1B-AP-10
- 1B-AP-11
- 1B-AP-15
- 2-AP-13
- 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
|