New information always is posted on the top of each page - sometimes a day at a time, and sometimes a week! I will leave the older information underneath the newer so that you can always look back and find what we did (especially if you were absent).
Shadow Ridge Middle School Computer Science

Tynker 201

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

Alien Invaders (9)

In this lesson, you will create a space shooter game! Additionally, you will learn how to move Actors to different screen locations using random number generators AND you will learn how to detect screen boundaries.

New Code Blocks


  •  : If the condition is true, then run the code inside the block.
  •  : Move the Actor to the specified location.
  •  : Move the Actor to the specified x- and y-coordinates on the Stage.
  •  : Point the Actor at the specified degree.
  •  : Return a random number between two parameters.
  •  : Detect if one Actor is touching a specified Actor, or the edge of the Stage.
  •  : React when the specified condition is happening.

Vocabulary

  • nothing new!

Objectives

Students will...
  • Use code blocks to move Actors to different screen locations using random number generators
  • Use code blocks to make Actors appear and disappear from the Stage

1. Asteroid Shooter Example (Example)

  • You will preview a completed game, where you will need to pilot a spaceship!
  • Move the spaceship with the left and right arrow keys
  • Shoot the aliens with the spacebar
2. Target Practice (DIY)
  • In this DIY (do-it-yourself) project, you will follow step-by-step directions to program a spaceship to destroy the evil alien spaceship!
  • Using a “repeat” loop, along with a “move pixels” block, and a “wait” blocks, you will learn how to make a projectile glide smoothly across the Stage
  • You will also use a “hide” code block along with a “touching?” condition to create the illusion of an Actor being destroyed
    (The alien spaceship will be hidden from view as soon as it is touched by the laser)
  • Did you finish early? Do the bonus section in “Step 4/4” of the tutorial
  • You can add a sound effect or animation when the alien spaceship is touched by the laser.
3. Looping Actors (DIY)
  • This DIY project showcases a common technique used in video games, which is moving objects from one edge of the screen to the opposite edge to create a seamless looping effect.
  • In Tynker, this effect can be created using a “when occurs” event code block to detect when the Actor reaches the bottom edge of the screen. The vertical positioning of the Actor is reset to the top using the “go to” code block, which also randomizes the horizontal positioning using “pick random” with the "screen left" and "screen right" parameters.
4. Avoid the Asteroids (Puzzle)
  • In this puzzle module, you will need to program the spaceship controls so the spaceship can avoid the asteroid and reach the power cell.
  • HINT: Set each key to move the spaceship 30 pixels rather than 20.
  • Bonus: Ask your students if they
    Can you figure out a way to “cheat” in this puzzle.
    (One possible solution is programming the spaceship to jump 850 units to the right, which will result in an immediate win--no asteroid dodging needed!)
5. Build an Asteroid Shooter (DIY)
  • This asteroid shooter game is partially completed for you.
    Look over the existing code and explore what each section does.
  • The instructions direct users to add movement controls, program the laser to fire, and make the aliens fall and disappear.
  • On Web: Your students will use the left and right arrow keys to move the spaceship left and right.
  • Did you finish early? Bonus section - make some of the aliens zoom randomly across the screen.
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
     
 
Shadow Ridge Middle School
12551 Holly Street
Thornton, Colorado 80241
720-972-5040