Shadow Ridge Middle School Computer Science

Tynker 202

Mrs. Hulstrom

 

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 16 Asteroid Pong

Bring on the special effects! In this lesson, students will learn how to use a timer to end a game and switch from one animation to another.

New Code Blocks

  • None

Vocabulary

  • None

Objectives

Students will...
  • Use code blocks to add a timer and create animations
  • Create games with animations and special effects

Think About it:

  • What have you found most challenging about the Programming 202 course?
  • What is a project, game, or moment during the Programming 202 course that you’re proud of?
  • Do you feel like you have improved as a programmer? Why or why not?

Lessons

1. Animation and Effects Example (Example)

  • Students will play a completed asteroid game where they’ll use their arrow keys (web) or tilt their device (mobile) to move the spaceship. They’ll create their own version of this game in the next module!
2. Actors with Animation and Effects (DIY)
  • In this DIY (do-it-yourself) project, students will program a space dodging game that uses costumes and graphic effects.
  • Explain to students that the spaceship only has five costumes, and the fifth costume isn’t used until the spaceship collides with the fireball.
  • Are students’ spaceships experiencing a permanent opacity effect? Tell students to use the “clear graphic effects” code block instead of the “set ghost effect to 0” code block.
3. Advanced Timer Example (Example)
  • Students will play a completed Advanced Timer game. They’ll create their own version of this game in the next module!
  • How long can your students fly the spaceship before colliding with an asteroid?
4. Advanced Timer (DIY)
  • In this DIY project, students will program a game that includes a timer to let the player know how long they lasted!
  • Did students finish early? Ask them to try the bonus activity in “Step 4” of the tutorial which encourages students to program the spaceship to explode and play a sound effect when it gets hit.
  • Optional: Ask students to change the pre-made messages and add their own messages.
5. Asteroid Pong (Puzzle)
  • To solve this puzzle module, students will need to program the asteroid and the paddle.
  • Give a hint for the asteroid: Ask students…
    • What should the “active” and “static” blocks be set to? (Answer: The “active” block should be set to true and the “static” block should be set to false.)
    • What should the impulse be set to? (Answer: 100)
  • Give a hint for the paddle: Ask students…
    • Where should the “key pressed?” block go? (Answer: The “key pressed?” block should go inside the “forever-if” block.)
6. Timed Game Example (Example)
  • Students will play a completed game where they’ll need to use the up and down arrow keys (web) or tilt their device up and down (mobile) to avoid asteroids. They’ll create their own version of this project in the next module!
7. Build a Timed Game (DIY)
  • In this DIY project, students will program a comet dodging game with a timer.
  • Activities include animating the spaceship, programming the comets to move, and programming the Stage to say how long the player survived.

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
     
 
Shadow Ridge Middle School
12551 Holly Street
Thornton, Colorado 80241
720-972-5040