In this project, I show how to shoot an octopus along a parabolic (curved) path by using Scratch’s built-in timer and a simple calculation. As the cannon continues to hit the target, the game gets more difficult by building a taller wall between the cannon and the target.
For our exercise, we’re going to use a simple but powerful idea; if we instruct a sprite to turn a little and move a little, we create a curved line. To create a circle, the sprite needs to keep turning and moving until it makes a complete turn. Repeating the circle in a controlled way creates patterns.
In the space maze game, the rocket will have the ability to fly up, right, down, and left at varying speeds. The player must navigate the rocket through a field of UFOs to land on the head. The maze, however, is randomly generated, requiring the player to carefully pick a path from the home base to the head.