Challenge 3: Maze Game

Lesson

Challenge 3: Maze Game

Your second challenge is to create a maze game where you will need to program a sprite so you can move it around the maze, avoid bad guys and reach a goal with a limited amount of lives.

What the code will need to do:

  • Move using the arrow keys
  • Go back to the start if you touch either a wall or bad guy and lose a life
  • Bad guys will need to move along a set path
  • If you run out of lives the code should stop

Click on this link for a pre-setup project, you will just need to do the code. However, if you want to make it all just create a new project.

https://scratch.mit.edu/projects/348373515/editor

Heres what it should look similar to once it’s done:

Hints:

Look at the previous lessons the different sections have all the bits of code you will need.

Remember to use this block at the start of the code for the main sprite and bad guys to ensure that they start where they are meant to. (The starting code from the first challenge)

@

Not recently active