Programming 302

Learn projectile physics as you build Gravity Sling, and then build your own complete physics platform game.

Grades 7 - 8
  • Web
Request Quote
for K-8 School Curriculum


In this advanced lesson plan, students will be introduced to the physics library as they build Gravity Sling, a projectile game inspired by Angry Birds (TM). They define the behaviors of different kinds of projectiles and use physics commands such as impulse, gravity and collisions to build the game. Ninja Runner is an advanced physics platformer game with a boss fight sequence that challenges them to apply all the concepts and skills they have learned.

Students who successfully complete this lesson plan will demonstrate excellent understanding of a variety of programming concepts and computational thinking skills, and will be able to design and implement projects of moderate to advanced complexity.

Topics Include

  • list variables
  • structured data
  • loops
  • advanced flow control
  • physics attributes
  • velocity
  • impulses
  • collisions
  • sending and receiving messages
  • parameters
  • functions
  • advanced conditional logic
  • math
  • Boolean operators

What Students Learn

  • Build a complete projectile-based physics game
  • Build a complete platformer game using physics
  • Programmatically generate never-ending platforms
  • Program a hero with multiple actions and access them via keys
  • Use cloud variables and a list data structure to implement a leaderboard
  • Use variables to keep score and game speed
  • Program enemy A.I.

Technical Requirements

* Online courses and lesson plans require a desktop computer, laptop computer, Chromebook, or Netbook with Internet connection and a Chrome (29+), Firefox (30+), Safari (7+), or Internet Explorer (10+) browser. No downloads required.
Block Coding
Advanced Course
No previous coding experience required.
Recommended for All ages.
Course includes
  • 16 lessons
  • 104 activities
  • Enhanced Creativity Tools
  • Automatic Assessment
  • Tutorials and Reviews
  • Coding Puzzles
  • DIY Projects
  • Quizzes
  • Teacher Guides
  • Answer Keys
1. Object Stacking
7 activities
Learn the basics of starting physics in Tynker.
2. Applying Impulses
7 activities
Apply directional impulses to safely land your spaceship.
3. Line Animation
8 activities
Use X and Y coordinates to draw and animate the Gravity Sling's gravity beam.
4. Physics Properties
7 activities
Use active and static properties to make actors react to collsions.
5. Ricochet
8 activities
Program the density and restitution of projectiles to make them go through objects and bounce off walls.
6. Explosions
7 activities
Program the conditional logic for an explostion to take out a space platform.
7. Changing Direction
7 activities
Help your rocket ship adjust its velocity mid-flight to hit a target.
8. Gravity Sling
5 activities
Finish the Gravity Sling game by creating a black hole to suck up objects.
9. Linear Velocity
6 activities
Use linear velocity and built-in animation to make your character run off of the platforms.
10. Double Jump
6 activities
Detect collsions and apply impulses to make your character do a double jump.
11. Receiving Values
6 activities
Send damage values to attacking robots and save the day.
12. Lists
6 activities
Create an inventory list so that your character can collect loot.
13. Laser Tennis
6 activities
Detect inventory list contents and use laser swords to deflect enemy projectiles.
14. Enemy AI
6 activities
Create an enemy robot that moves around based on information in a randomized list of values.
15. Leaderboards
6 activities
Use cloud lists and global variables to create a leaderboard for your high scores.
16. Platform Movement
6 activities
Learn the final things to finish this platformer game.