In today's project,
you learned to use an important computer science
and gaming concept, events.
Events are actions that tell the computer
to wait for a response.
In the game you created today,
you used key press events to allow a user to move sprites.
Events are used in computers all around you
and in some places you might find surprising.
Take a look at how events are used
to program a smartphone or tablet.
Anytime the user touches the screen, an event is triggered.
For example, to send a message to a friend,
the user types using the keyboard on the screen
just like you see here.
The computer scientist programmed the app
to type an a when the a key is pressed
and a b when the b key is pressed and so on.
Gestures such as swiping and pinching are also events.
For example, in the Google Maps app,
the map moves to the left when you swipe to the left
and it zooms out when a user pinches the screen.
Tapping and swiping aren't the only events.
There are also events for tilting, shaking,
and even talking.
Smartphones and tablets
could not be programmed without events.
Next session, you will build on the computer science
knowledge you gained toady by programming a maze game.
In this game, you'll need to move a character
from start to finish without touching any maze walls.
This game will introduce if statements
which allow you to program computers to make decisions.
Until then, have fun creating and coding.
See you next time.