image

3MAZE RUNNER

You’ve probably played a maze game before, but have you ever tried making one? Mazes can be tricky to complete, but they’re easy to program. In this chapter, you’ll create a game that lets the player guide a cat through a maze to reach its goal—a delicious apple! You’ll learn how to move the cat with the keyboard and how to block its progress with walls.

Before you start coding, take a look at the final program. Go to https://www.nostarch.com/scratchplayground/ and play the game.

image

SKETCH OUT THE DESIGN

First, draw what you want the ...

Get Scratch Programming Playground now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.