Step 1: Draw the Maze
In this phase, we’re going to draw a maze, we need one color for
the background and one color for the path of the maze. We will put
a circle at the start and a circle at the end.
- Edit the backdrop
- Fill it with a solid color
- Choose a color for your
maze path
(white) - Draw a filled
start circle
with the circle tool - Choose a color for you ending
- Draw an
end circle
- Pick the “paint brush” tool
- Switch back to the maze path color
- Make the line width big enough so that your sprite will be able to fit in it, almost as big as it goes
- Draw the winning path to the maze
- Add dead ends to your maze
The maze is ready!
Step 2: Add arrow key controls to your sprite
Now, we’re going to pick a sprite, shrink it down,
and write a program so that we can move it with the arrow keys
- Pick a sprite that will go through the maze
- Drag it to the
start circle
- Shrink the sprite’s costume down so it can fit easily in your
maze path
- Switch to scripts
- Under the “Events” blocks, choose
When space key pressed
and drag it to your program area - Change the argument from “space key” to “right arrow”
- Under the event block, add a move block:
change x by 2
— remember that changingx
moves the sprite to the right. - Repeat the process for the left arrow, but
change x by -2
negative (minus) numbers move the spite to the left - Repeat for the
up arrow
anddown arrow
, but instead ofchange x
you’re going to use achange y
move block
Step 3: Look out for crashes
Next, we start our sprite in the start circle. If the player leaves the
path, they get sent back to start. We will also check to see if they finish in time.
- Drag your sprite into the start circle
- Add a Click when Started (green flag) block
- Add a
goto x,y
block — this will move your sprite to the start circle when the green flag is clicked - Under control, add a
repeat until
loop block - Under sensing, drag a
touching color
sensing block into the repeat until condition - Click the color on that block and then click the your end circle — the sprite will move until the player reaches the end of the maze
- Add an
if ... then
block that sends the player home if they touch the background color.
Advanced ideas
- Add more levels
- Add a countdown clock, when time runs out, Game Over
- Add a scoreboard: sprite gets points for all of the time left on the clock, clearing levels, etc.
- Add “power ups”: add bonus sprites into the path, if the player collects them, they get points.
- Add a “run” key so that the sprite moves faster when they hold shift.
- Give the player more than one life.
- Add your own ideas!