Skip to content

Please update your browser

Your browser version is not supported by this site. CS First may not work properly. Learn more

1. Opening the Starter Project


Hey and welcome to day two of CS First, Scratch Games! Today, you are going to learn about a computer science concept while coding a racing game. This concept is called Events.

An event is something that causes an action. Events can be key presses, mouse clicks, or messages sent from one part of a computer program to another.

An event can be written as a sentence like this: When this event happens, do this action.

Take a look at how events are used in the popular video game Minecraft. In Minecraft, the user controls a character that can fight monsters, mine resources, and build things.

Minecraft could not be programmed without events. Here are some examples.

When the user presses the space key, the character jumps.

When the user presses the “w” key, the character moves forward.

When the user scrolls the mouse wheel, the character selects a new tool to use.

When the user clicks on a tree trunk, the character starts collecting wood from the tree. Now, take a sneak peek at the game you will create today! This project has a race track backdrop and two sprites. It is a two-player game, where each player controls a sprite. The object of the game is to be the first to make it around the track.

In this video, you’ll learn how to open a starter project and sign in to Scratch.

After you’ve finished watching this video, it will be your turn to do the same. Time to get started!

Take a moment now to make sure you are signed in to the cs first website using the username and password from your passport. If you are *not* signed in, you won’t receive a digital badge for completing this activity, so be sure to sign in!

Next to this video, you should see a link that reads, “Racing Game Starter Project.”

Clicking this link will open a Scratch project with a racetrack backdrop in a new tab. If you want to switch back to this video, click the CS First tab.

Click remix, and enter your sign-in information. Now, it’s your turn. Click the starter project link next to this video, click remix, and sign in.

Once you’re done, switch back to this tab and click the green arrow to watch the next video.

Next arrow_forward
  1. Open the starter project.
  2. Remix the project.
  3. Sign in to Scratch.