+
Asteroid Field Game
Faculty Commons material developed by Daniel Sinkovits - Published June 25, 2025
This is a simple game that involves accelerated motion.
I typically run this after the students have had an introduction to Glowscript/ Web VPython programming and are learning the basics of accelerated motion.
The player controls the thrust on a ship (cyan sphere) using the arrow keys. To win, the player must collect all the green spheres (treasures) while avoiding all white spheres (asteroids).
The code template is minimally completed but full of multiline comments (in green) that point out where changes in code need to be made. These correspond to the steps in the directions, which walk the students through the theory and coding of each step.
This material is freely available to registered verified educators.
Login or register as a verified educator for free to access instructor-only material.


