making a simple maze game...making a simple maze game ks2-computing mgl 1 before you start your...

14
Making a simple maze game KS2-Computing MGL 1

Upload: others

Post on 15-Jul-2020

17 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Making a simple maze game...Making a simple maze game KS2-Computing MGL 1 Before you start your game, here is some key vocabulary you will need to understand! •Sprite-A character

Making a simple maze gameKS2-Computing

MGL 1

Page 2: Making a simple maze game...Making a simple maze game KS2-Computing MGL 1 Before you start your game, here is some key vocabulary you will need to understand! •Sprite-A character

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

Page 3: Making a simple maze game...Making a simple maze game KS2-Computing MGL 1 Before you start your game, here is some key vocabulary you will need to understand! •Sprite-A character

Step 1- Loading Scratch

• Load Google and search for Scratch 3.0.

• Once Scratch has loaded select, ‘Start Creating.’

MGL 3

Page 4: Making a simple maze game...Making a simple maze game KS2-Computing MGL 1 Before you start your game, here is some key vocabulary you will need to understand! •Sprite-A character

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

Page 5: Making a simple maze game...Making a simple maze game KS2-Computing MGL 1 Before you start your game, here is some key vocabulary you will need to understand! •Sprite-A character

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

Page 6: Making a simple maze game...Making a simple maze game KS2-Computing MGL 1 Before you start your game, here is some key vocabulary you will need to understand! •Sprite-A character

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

Page 7: Making a simple maze game...Making a simple maze game KS2-Computing MGL 1 Before you start your game, here is some key vocabulary you will need to understand! •Sprite-A character

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

Page 8: Making a simple maze game...Making a simple maze game KS2-Computing MGL 1 Before you start your game, here is some key vocabulary you will need to understand! •Sprite-A character

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

Page 9: Making a simple maze game...Making a simple maze game KS2-Computing MGL 1 Before you start your game, here is some key vocabulary you will need to understand! •Sprite-A character

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

Page 10: Making a simple maze game...Making a simple maze game KS2-Computing MGL 1 Before you start your game, here is some key vocabulary you will need to understand! •Sprite-A character

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

Page 11: Making a simple maze game...Making a simple maze game KS2-Computing MGL 1 Before you start your game, here is some key vocabulary you will need to understand! •Sprite-A character

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

Page 12: Making a simple maze game...Making a simple maze game KS2-Computing MGL 1 Before you start your game, here is some key vocabulary you will need to understand! •Sprite-A character

Step 10- Testing

• Test your programming.

• Does your sprite collect the prize?

Well done your doing great!

MGL 12

Page 13: Making a simple maze game...Making a simple maze game KS2-Computing MGL 1 Before you start your game, here is some key vocabulary you will need to understand! •Sprite-A character

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

Page 14: Making a simple maze game...Making a simple maze game KS2-Computing MGL 1 Before you start your game, here is some key vocabulary you will need to understand! •Sprite-A character

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