Skip to content
https://storage.googleapis.com/files.cs-first.com/game-design/game-icon%402x.png

1. Remix the Maze Starter Project

Transcript

(soft music)

Hey and welcome to day three of Scratch Games.

Today you're going to explore If statements, while creating a Maze Game.

If statements allow the computer to check a condition; decide whether to do something.

If statements have two parts, an If and a Then.

They can be read, 'If this is true, Then do this'.

Take a look at the game Pac-Man as an example.

Pac-Man is a classic arcade game from the 1980s.

In this game, a Pac-Man character must avoid a swarm of enemies.

The Pac-Man character uses If statements in many different ways.

For example, if Pac-Man is touching an enemy, then he looses a life.

In Scratch, you can express the same kind of statement with a Block-Stack.

For example, you could code an If statement that directs the computer if touching enemy, then change lives by minus one.

Even the maze in Pac-Man uses If statements.

Pac-Man can only move forward if he is not facing a wall.

Today, you'll create a game where players guide a Sprite through a maze using the mouse.

You'll use If statements multiple times.

For example, if the sprite touches the walls of the maze, then it changes directions or if the sprite touches a bug at the end of the maze, then the game ends.

Check out the different Starter Projects and decide which one fits the story your game will tell.

(soft music)

To begin, chose one of the starter project links next to this video.

Sign into Scratch.

(upbeat music)

Then click Remix to create and save a copy of the Maze Game starter project to your Scratch account.

Now it's your turn.

Open the starter projects and sign in.

Then click Remix to create and save a copy of the Maze Game starter project to your Scratch account.

Once you finish these steps, come back to the CS First page and click the green arrow to move on to the next video.

(soft music)

Instructions

  1. Open the starter project.
  2. Remix the project.
  3. Sign in to Scratch.
Attributions
  • "Pac-Man - NES Gameplay" by NESguide.com (https://www.youtube.com/watch?v=45j9a6_FiyM) -- Licensed by Creative Commons Attribution 3.0 Unported (https://creativecommons.org/licenses/by/3.0/legalcode) -- Video trimmed to needed length