In this add-on you'll create another cave.

To start, create a new cave section.

Click paint new backdrop.

The program checks if the sprite is touching black to see if the game should end, so outline the new cave sections in black.

Use the circle drawing tool to make your rocks.

Also, make sure to minimize the drawing area so you can paint on the entire stage.

Use the circle drawing tool, then use the reshape tool to shape your rocks into any size you would like.

Then fill the cave sections with any color you'd like.

This example uses yellow.

Next, program the cave sprite to line up with the other cave sprites.

Copy the code from another cave sprite by clicking and dragging it to the new sprite.

Duplicating and reusing code saves computer scientists a lot of time.

The first number in this equation is the number of the cave.

In this example the new cave will be set to the number three, that way the last cave still has a finish line.

Try it out.

Whoa, the third and fourth caves are running on top of each other.

To fix that, be sure the last cave is programed using the number four.

Test this again.


Now it's your turn.

Design a new cave sprite with black edges.

Copy the code from another cave to the new cave sprite.

Then, adjust the numbers to match the cave sprite order.

Choose an Add-On

Make Your Own Music

Add a drum beat and background music to your game.

Add Another Cave Section

Design a new cave sprite with black edges and add it to your game.

Make the Game Harder

Make the player press the spacebar over and over to keep the sprite in flight.

Dangerous Cave Walls

Make the player sprite explode when it touches the walls of the cave.

Add Another Level

Create additional game levels that get faster and harder as the player progresses.


Make the sprite dive, or move down faster than it falls.


  1. Choose an Add-On, and click "watch" to learn how to build it.
  2. Once you finish one Add-On, try another one below the video!
  • The song “Magic Marker” is © YouTube-- CC-BY-SA 4.0 does not apply.