Build a simple shooter game
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. Figure 1 shows the game.
The actual sprites used for this game do not matter too much, but I will use four sprites total: a cannon, a bullet, a wall, and a target. In my setup, the bullet is an octopus and the target is a character from the list of fantasy sprites included with Scratch. The wall can be drawn in Scratch's Paint Editor.
Building a Wall
In the game, the wall separates the cannon from the target, and it will get taller as the target is hit by the bullet. To handle the visual effect of the game, you can add a new sprite using the Paint New Sprite button in the Scratch interface.
[...]
Buy this article as PDF
Pages: 3
(incl. VAT)