Please update your browser
Your browser version is not supported by this site. CS First may not work properly. Learn more.
(inspiring instrumental music)
Hey and welcome to day two of CS First Scratch Games.
Today we're 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 part.
An event can be written as a sentence, like this:
when this event happens, do this action.
Let's look at how events are used
in the popular video game, Minecraft.
Minecraft is a game where the user controls a character that
can fight monsters, mine resources, and build things.
Minecraft can not be programed without events.
Here's some examples: when the user presses
the space key, our character jumps.
When the user presses the W key,
our character moves forward.
When the user scrolls the mouse wheel,
our character selects a new tool to use
and when we use our clicks on a tree trunk,
our character starts collecting wood from a tree.
Now let's take a sneak peek at
the game we will create today.
This project has a racetrack 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 the screen cast, I'll show you how to open
a starter project and sign in to Scratch.
After you finish watching the screen cast,
it'll be your turn to do the same.
Let's get started.
Next to the screen cast, you should see a link
that reads Racing Game Starter Project.
Clicking this link will open a Scratch project
with a racetrack backdrop and a new tab.
If you want to switch back to the screen cast,
click the CS First tab.
I will then enter my sign in information.
You can find your sign in information
on the CS First club pass.
Then click remix.
Now it's your turn.
Click the starter project link next to this screen cast.
Sign in to Scratch using the sign in information
from your CS First club pass, then click remix.
Once you're done, switch back to this tab
and click the green arrow to watch the next screen cast.
Sign in to track your progress and earn badges