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 12 Basketball

In this lesson, students will create a basketball game using the physics engine! In the last project, students will create a physics-based game that sorts falling objects with a rotating platform.

Objectives

Students will...
  • Use code blocks to make Actors launch projectiles
  • Create physics-based games using the physics engine

Materials

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

Think Abouts:

  • How would you describe Tynker’s physics engine to someone who hasn’t used it before?
  • What are some cool features you can add to your games or projects using physics?
  • What do you find most difficult about using Physics code blocks?
  • What do you enjoy most about using Physics code blocks?

1. Basketball Game Example (Example)

  • Students will play a completed basketball game. They’ll create their own version of this game in the next modules!
  • How to play: Press the spacebar (web) or tap on the screen (mobile) to shoot the basketball.
2. Aim, Animate, Shoot (DIY)
  • In this DIY (do-it-yourself) project, students will follow step-by-step directions to program a basketball player to throw a basketball.
  • Did students finish early? Ask them to experiment with different impulse values for their ball Actor.
  • Students will continue to add new features to their basketball game in the following modules!
3. Basket Example (Example)
  • Students will play a game that uses a cannonball and a basket to model a basketball going through a basketball hoop! They’ll create their own version of this project in the next module.
  • How to play: Press the spacebar (web) or tap on the screen (mobile) to make the cannonball shoot a cannon. Can they make the cannonball land between the walls?
4. Set Up the Basket (DIY)
  • In this DIY project, students will create a basket using two wall Actors. Once students finish programming their project, ask them to try shooting the cannonball so it falls into the basket.
  • Did students finish early? Ask them to create a new makeshift basket that looks different from their first one.
5. Apple Drop (Puzzle)
  • To solve this puzzle module, students will need to change the active and static properties of platform Actors so that the apple can roll to Codey.
  • Give a hint: Ask students…
    • Which platforms need to be set to “active?” (Answer: The first, second, and third platforms)
    • Are the active platforms static or not static? (Answer: The active platforms are static because we don’t want them to be affected by gravity--we don’t want them to fall to the ground.)
6. Basketball Game (DIY)
  • This DIY project builds on the basketball game that your students started working on in the previous modules.
  • Did students finish early? Ask them to explore the bonus activity in “Step 4” of the tutorial, which encourages students to add a score counter. (Hint: Add a “score” variable.)
7. Falling Objects Example (Example)
  • Students will play a completed Falling Objects game! They’ll create their own version of this project in the next module.
  • How to play: Tell students to rotate the platform with their mouse (web) or finger (mobile). Can they correctly sort the objects?
8. Falling Objects (DIY)
  • In this DIY project, students will program a rotating platform to sort falling objects.
  • Emphasize to students that the “static” property in Tynker doesn’t mean the Actor can’t move--it means that the platform Actor ignores gravity, but it can still be positioned and rotated!
  • Did students finish early?
    • Ask them to explore the bonus activity in “Step 6” of the tutorial, which encourages students to change the game’s difficulty by increasing or decreasing the value of the “set gravity to” code block.
    • Can they change the bounciness of the falling Actors? (Give a hint: Tell students to change the value of the “set restitution to” code block.)

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