Moving through a maze to get to the end is always very intense and exciting! In this game we will learn how to make an object move through a maze without touching the walls of the maze. The ball can be moved by pressing the arrow keys. Good luck, have fun!!

Download the Building Instructions Guide Below

Link to Building Guide


What you will be learning in this Lesson?

In the above Scratch Activity you will be exploring the below concepts in detail

Collision Detection

8539.jpg.png

Collision detection typically refers to the computational problem of detecting the intersection of two or more objects.

With regard to scratch, collision detection is the understanding of the intersection/collision of two or more objects. You will be exploring this concept in the development of this game (collision with the maze wall).

Sprite movement

Maze4

When you are developing a maze game, you should be able to move the sprite (ball, in this case) up, down, left and right.

The sprite can be controlled by the keyboard arrow keys or any other keys that you like.

Movement using x and y coordinates

Maze5

 

In the sprite movement, we will learn how the ball moves according to x and y coordinates. Maze6

For example if we press the left arrow, then the ball will move on the negative x axis. This can be done in scratch by using the change x by -10 block.