O'Reilly logo

Scratch Cookbook by Brandon Milonovich

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding more levels

This recipe is all about adding additional levels to your game. We're still going to work with the maze we've been working with in other recipes, so open up the Scratch file where we left off previously.

Note that you do not have to have finished the recipe on keeping a high score list to complete this recipe. In fact, you can do this recipe without having finished anything else in this chapter! Just keep in mind that a few things may look different in our pictures, and you still need the Using the timer recipe of Chapter 4, Basic Gaming.

Getting ready

One of the first things to note when adding new levels is that there will be a few different places where we just have to add minor pieces of code.

The first thing you should do is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required