Instructions for creating the maze game (part 1) File

Creating Maze Games
We will create a game in which the player simply must reach the exit.
There are three ingredients in the game: the player, the wall, and the exit. We will
need a sprite for each of them and make an object for each of them.
1) Creating the Sprites
Create these three sprites in the usual way (Resources > Create Sprite) and name
them spr_person, spr_wall, and spr_goal.
2) Creating the Objects
Next we create three objects (Resources > Create Object). Let us first make the wall
object.
The Wall



We will give it the spr_wall sprite as image
Name it obj_wall
Make it solid by checking the box labelled Solid.
The wall object does not do anything else. So no events need to be defined for
it.
The Person



We will give it the spr_person sprite as image
Name it obj_person
They are NOT solid
Press ok and close this window for now (we’ll come back to it later).
The Goal
Now let us create the goal (the flag) object. This is the object the player has to reach.
It is a non-solid object.
When the person collides with it we need to go to the next room (next level).
To do this:
 Add a collision event and choose obj_person.
 Add the actions below (you will have to look through the different menus on
the right). You do not need to change any of the action settings.
Your aim is to make the properties window look like this one below:
Back to the Person
We need to make the player move and not collide with a wall.
See if you can work out how to set up the properties window as follows (note
obj_wall is selected under ‘Events’):
Add these settings to the action (stand still):
Now add the following 2 Actions for each of the 5 keyboard events below obj_wall:
These need to be the check grid settings:
We have added this ‘Check Grid’ Action to keep the sprite in line with the
‘corridors’ of our maze.
These need to be the ‘Moved Fixed....’ settings (speed 8):
No key
Left
Right
See if you can work out the others!
1) Creating the Rooms
Create two rooms that look like a maze. In each room place the goal object at the
destination and place the person object at the starting position.
See last week’s guide if you can’t remember how to design a room.
Idea for room 1:
Idea for room 2:
Done
And that is all. The first game is ready. Play a bit with it. E.g. change the speed of the
person, create some more levels, change the images, add some music and sound
effects.
You will be assessed on how successfully you manage to customise the game.