browser icon
You are using an insecure version of your web browser. Please update your browser!
Using an outdated browser makes your computer unsafe. For a safer, faster, more enjoyable user experience, please update your browser today or try a newer browser.

Maze Game Week 1

You are going to learn how to code a maze game, using variables and use “if statements”.

Do what you feel your brain can cope with. NEVER copy code – watch the videos then have a go yourself.

Step 1: See where we are heading

We are going to create a maze game. Your sprite will have lives and will have to get to the end of the maze without touching the lines.

Those of you who are really getting to grips with the code will create a game with levels. These two games have been created by children in Sycamore in previous years. They fall apart after a couple of levels, but you will see the type of game that we are aiming for. I’ve chosen these as they are good examples, but the code is a little inefficient in places (so you won’t be able to copy it without getting in a tangle!)

Click on the links to play. Both control the sprite using the arrow key. Remember to click on the green flag to start.

The bug maze

The Goth Maze

Step 2: Learn how to create a simple maze

I suggest that you watch the video to begin with, then try to complete the work (rather than keep stopping the video and completing each small step). You will learn more trying to figure out how to do things. You can always go back to the video if you get stuck.