Making a simple maze game...Making a simple maze game KS2-Computing MGL 1 Before you start your...
Transcript of Making a simple maze game...Making a simple maze game KS2-Computing MGL 1 Before you start your...
Making a simple maze gameKS2-Computing
MGL 1
Before you start your game, here is some key vocabulary you will need to understand!
• Sprite- A character or an object.
• Commands/ Code – Instructions that tell your computer to carry out an action.
• Programming- A group of instructions that tell a computer to perform an action.
• Variables – A place where computers store information. Variables have names and a value, just like a score board.
• Test – To check if your program is working correctly.
• Debug- To find and solve a problem within your programming.
• Ok, let’s start…..2
Step 1- Loading Scratch
• Load Google and search for Scratch 3.0.
• Once Scratch has loaded select, ‘Start Creating.’
MGL 3
Step 2- Setting Backgrounds
• Select the ‘Choose a background’ icon.
• Select the ‘Paint brush’ icon.
• Use the ‘Rectangle’ tool to create a maze shape.
MGL 4
Step 3- Choosing a Sprite
If you would like to change the sprite……
• Delete Scratch the cat.
• Select the ‘Choose a Sprite’ icon.
• Select a sprite from the library.
MGL 5
Step 4-Changing size
If you need to change the size of the sprite….
• Click inside the ‘Size’ icon.
• Add a new number.
• Press Enter.
MGL 6
Step 5- Coding
• Select your sprite is selected.
• Add the code you see here.
REMEMBER- to find the correct code
From the blocks, use the colours as a
guide.
MGL 7
Step 6- Testing your code
• Click on the arrow keys on your keyboard to
• Move your sprite around the maze.
Did your programming work?...
Well done!
If your programming did not work, check the coding again – you may have missed one line of commands. This is called debugging (finding the problem)
MGL 8
Step 7- Coding the sprite NOT to touch the background.
The sprite cannot touch the maze! If it does
it will return to the beginning.
• Place your sprite in the start position
• Add the code on the left to your sprite.
• The numbers (Variables) may be different to
the example.
Note: to get the exact colour of the
maze select the colour picker from
the colour option.
MGL 9
Step 8- Testing your game
• Test your game
• Did you manage to get around the maze without touching the maze?
• Well done! Let’s move on…….
MGL 10
Step 9- Adding a prize
Lets make the game more interesting lets add a prize!
• Select the ‘Choose a Sprite’ icon.
• Search ‘Key’ or choose your own prize
from the library.
• Place the key at the end of the maze
• Add the code on the left.
MGL 11
Step 10- Testing
• Test your programming.
• Does your sprite collect the prize?
Well done your doing great!
MGL 12
Step 8- Challenge
• Can you make your game a 2 player game by adding another sprite?
• Can you add prizes to collect as you move through your game?
• Can you add an enemy?
MGL 13
Step 9- Test a family member!
OK, so your Maze Game is ready….
Change your screen to full screen by
• Selecting the Full Screen Control
• Test your family!!
MGL 14