Middle School course

Programming 202

  • GRADES 5-6
  • INTERMEDIATE
  • WEB IPAD
  • 16 LESSONS
Slide: 1 of 22

Answer Key

Module 4: Learn to Make Trick Shots

Module 5: Owl Hunt

Module 7: Make the Ball Bounce

Module 8: Quiz

1. Which of these code blocks allows other objects to collide with the Actor?

  • {"func":"blockPhysicsSetActive","values":[{"type":"boolean","value":"true"}]}
  • {"func":"blockPhysicsSetActive","values":[{"type":"boolean","value":"false"}]}
  • {"func":"blockPhysicsSetStatic","values":[{"type":"boolean","value":"false"}]}
  • {"func":"blockPhysicsSetStatic","values":[{"type":"boolean","value":"true"}]}

2. Which two of these code blocks allows the Actor to fall? (Choose 2.)

  • {"func":"blockPhysicsSetActive","values":[{"type":"boolean","value":"true"}]}
  • {"func":"blockPhysicsSetActive","values":[{"type":"boolean","value":"false"}]}
  • {"func":"blockPhysicsSetStatic","values":[{"type":"boolean","value":"true"}]}
  • {"func":"blockPhysicsSetStatic","values":[{"type":"boolean","value":"false"}]}

3. What kind of Actor could this code block be used for? {"func":"blockPhysicsSetStatic","values":[{"type":"boolean","value":"true"}],"next":{"func":"blockPhysicsSetActive","values":[{"type":"boolean","value":"true"}]}}

  • A cannonball
  • A background
  • Display text which doesn't interact with any objects
  • A floating platform

4. What kind of Actor could this code block be used for? {"func":"blockPhysicsSetStatic","values":[{"type":"boolean","value":"false"}],"next":{"func":"blockPhysicsSetActive","values":[{"type":"boolean","value":"true"}]}}

  • A floating platform
  • A cannonball
  • A cloud
  • Display text which doesn't interact with any objects

5. Sharon wants to have an Actor in her game that just displays the title of the game, but the text falls to the ground when she hits play! Which of these blocks is she missing?

  • {"func":"blockPhysicsSetGeometry","values":[{"type":"choice","value":"circular"}]}
  • {"func":"blockPhysicsStart"}
  • {"func":"blockPhysicsSetActive","values":[{"type":"boolean","value":"false"}]}
  • {"func":"blockLooksHide"}

6. True or false: Physics will start automatically in your program without any additional code blocks.

  • True
  • False

7. True or false: If you want to have two Actors bounce off one another, they both need to be active.

  • True
  • False

8. True or false: All the active Actors on the screen will fall to the ground when this code block is used. {"func":"blockPhysicsStop"}

  • True
  • False

9. True or false: If an Actor is not static, it will fall to the ground on its own when physics is started.

  • True
  • False

10. Which of these code blocks would we use to allow a round Actor to roll down a hill?

  • {"func":"blockPhysicsSetGeometry","values":[{"type":"choice","value":"circular"}]}
  • {"func":"blockPhysicsSetGeometry","values":[{"type":"choice","value":"rectangular"}]}
  • {"func":"blockLooksHide"}
  • {"func":"blockPhysicsStop"}

11. Which of these blocks is being used to detect collisions between Actors?

  • {"func":"registerTrigger","values":[{"type":"wrapper","func":"valueSensingTouchingSprite","values":[{"type":"string","value":"cannon ball"}]}]}
  • {"func":"registerTrigger","hiddenInSandbox":true,"values":[{"type":"wrapper","func":"valueSensingMouseDown"}]}
  • {"func":"registerSpriteTrigger"}
  • {"func":"registerFlagTrigger"}

12. Which of these blocks is used to change the bounciness of a ball?

  • {"func":"blockPhysicsSetRestitution","values":[{"type":"number","value":"0.2"}]}
  • {"func":"blockPhysicsStart"}
  • {"func":"blockPhysicsSetGeometry","values":[{"type":"choice","value":"circular"}]}
  • {"func":"blockPhysicsApplyImpulse","values":[{"type":"number","value":"0"}]}

13. If you wanted to make a ball bouncier, how would you change the value of the {"func":"blockPhysicsSetRestitution","values":[{"type":"number","value":"0.5"}]} block?

  • Set the value to 0.9
  • Keep the value at 0.5
  • Set the value to 0.3
  • Set the value to 0.0

14. What happens if you use this block on a static Actor in midair while physics is turned on? {"func":"blockPhysicsSetStatic","values":[{"type":"boolean","value":"false"}]}

  • The Actor would fall to the ground
  • The Actor would stay in the air
  • The Actor would start spinning
  • The Actor would grow

15. Which of these blocks is used to make the owl look surprised when it touches the cannonball?

  • {"func":"blockLooksSwitchCostume","values":[{"type":"string","value":""}]}
  • {"func":"blockLooksShow"}
  • {"func":"blockLooksSay","values":[{"type":"string","value":"Hello"}]}
  • {"func":"blockPhysicsSetGeometry","values":[{"type":"choice","value":"circular"}]}

16. Which of these code blocks would not be used in making a horizontal floating platform?

  • {"func":"blockPhysicsSetStatic","values":[{"type":"boolean","value":"true"}]}
  • {"func":"blockPhysicsSetGeometry","values":[{"type":"choice","value":"rectangular"}]}
  • {"func":"blockPhysicsSetActive","values":[{"type":"boolean","value":"true"}]}
  • {"func":"blockMotionPointTowards","values":[{"type":"string","value":"mouse-pointer"}]}

17. Which of these blocks would you use if you did not want an Actor to be affected by gravity?

  • {"func":"blockPhysicsSetStatic","values":[{"type":"boolean","value":"true"}]}
  • {"func":"blockPhysicsSetGeometry","values":[{"type":"choice","value":"rectangular"}]}
  • {"func":"blockPhysicsSetActive","values":[{"type":"boolean","value":"true"}]}
  • {"func":"blockPhysicsApplyImpulse","values":[{"type":"number","value":"0"}]}

18. True or false: The {"func":"blockPhysicsSetRestitution","values":[{"type":"number","value":""}]} block would be used to adjust an Actor's bounce on a trampoline.

  • True
  • False

19. How can I make an Actor less bouncy?

  • Increase its size
  • Decrease its size
  • Increase its restitution
  • Decrease its restitution

20. True or false: By default, Actors are inactive and static when physics is turned on.

  • True
  • False

U.S. Standards

  • CCSS-Math: MP.1, MP.2
  • CCSS-ELA: RF.5.4.A, 6-8.RST.3, 6-8.RST.4, 6-8.RST.7
  • CSTA: 1B-AP-11, 1B-AP-15, 2-AP-13, 2-AP-16, 2-AP-17
  • CS CA: 3-5.AP.10, 3-5.AP.13, 3-5.AP.14, 3-5.AP.17, 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

U.K. Standards

Key stage 2
Pupils should be taught to:
  • design, write and debug programs that accomplish specific goals, including controlling or simulating physical systems; solve problems by decomposing them into smaller parts
  • use sequence, selection, and repetition in programs; work with variables and various forms of input and output
  • use logical reasoning to explain how some simple algorithms work and to detect and correct errors in algorithms and programs
  • understand computer networks, including the internet; how they can provide multiple services, such as the World Wide Web, and the opportunities they offer for communication and collaboration
  • use search technologies effectively, appreciate how results are selected and ranked, and be discerning in evaluating digital content
  • select, use and combine a variety of software (including internet services) on a range of digital devices to design and create a range of programs, systems and content that accomplish given goals, including collecting, analysing, evaluating and presenting data and information
  • use technology safely, respectfully and responsibly; recognise acceptable/unacceptable behaviour; identify a range of ways to report concerns about content and contact
Key stage 3
Pupils should be taught to:
  • design, use and evaluate computational abstractions that model the state and behaviour of real-world problems and physical systems
  • understand several key algorithms that reflect computational thinking [for example, ones for sorting and searching]; use logical reasoning to compare the utility of alternative algorithms for the same problem
  • undertake creative projects that involve selecting, using, and combining multiple applications, preferably across a range of devices, to achieve challenging goals, including collecting and analysing data and meeting the needs of known users
  • create, reuse, revise and repurpose digital artefacts for a given audience, with attention to trustworthiness, design and usability
  • understand a range of ways to use technology safely, respectfully, responsibly and securely, including protecting their online identity and privacy; recognise inappropriate content, contact and conduct, and know how to report concerns

Lesson 11: Static Platforms

Course: | iPad Web

  • Introduction
  • Concepts
  • Learn to Make Trick Shots Example
  • Learn to Make Trick Shots
  • Owl Hunt
  • Make the Ball Bounce Example
  • Make the Ball Bounce
  • Quiz

Description

Help your students advance their skills as they build Paint Racer, a pen-drawing game, and Cannon Crasher, a physics game. Harness the power of the physics engine to easily program realistic jumps and bouncing balls. Upon completing this lesson plan, students will be able to use model physics properties and generate math art.

Topics

  • Geometric patterns
  • Angles
  • Projectile physics
  • Physics engine
  • Gravity
  • Hit boxes
  • Collisions
  • Bouncing
  • Static platforms
  • Impulse
  • Velocity and force
  • Timers
  • Interactions between objects
  • Special effects

What Students Learn

  • Draw shapes and patterns using pen drawing commands
  • Program fluid motion with keyboard control
  • Control Actors using messaging
  • Define and use functions with parameters
  • Build physics projects using gravity, impulse, and velocity
  • Build their own versions of classic arcade games

Technical Requirements

* Online courses require a modern desktop computer, laptop computer, Chromebook, or Netbook with Internet access and a Chrome (29+), Firefox (30+), Safari (7+), or Edge (20+) browser. No downloads required.
* Tablet courses require an iPad (iOS 10+) with Tynker or Tynker Junior app installed and Internet access