1. Scratch Maze Pupil Activity Pack (Teacher View)
Switch to Teacher Notes Pupil Activity Code: 0004 - What is it? What will you learn? Program a maze game with: - Keyboard inputs for control - Conditions and sensing for interaction and game-play - Data variables for scoring - Game timer What will you need? The Scratch website |
|
2. Add keyboard inputs and maze stage
Watch the video to learn how to add keyboard inputs to control your player sprite moving around the screen. Then use the built-in stage painter to draw a maze using shapes and lines. Next, add another sprite, such as a coin that can be collected. Choose a sprite such as a coin that does not have the same outline as your maze lines as this will affect your conditions in the next tutorial. In this example, the outline of the star is slightly different to the black of the maze lines. If you are on a touch screen device such as an iPad then you can use the videos in the Scratch Control Pupil Activity Pack to learn how to program touch screen inputs. |
|
3. Collect objects with conditions
Watch the video to learn how to program conditions that when the star/coin sprite is touched by the player (cat) sprite, it disappears. This makes it look like it has collected. Tip: Watch the video until the end first before trying, as there is important information that will help you |
|
4. Maze Walls
Watch the video to learn how to add conditions that when the player sprite (cat) touches the maze lines, it goes back to start. Extra Challenge How could you program the sprite so that when it touches the maze lines, it just bounces back a few steps instead of going back to the start? |
|
5. Scoring
Use data variables to add a scoring system to your project so that when your sprite player collects an object, the score goes up. |
|
6. Game timer
Watch the video to learn how to add a game timer to give your player sprite only so much time to collect the objects. Can you improve? How could you make your game better? Add another player? Add sprites that are trying to stop you getting to the objects to collect? |