Unit 1 Lab 1

Click Alonzo Game

In this lab, you'll program an app that you can share with others and play on your phone.

BJC unit 1 Lab 1 Click Alonzo Game

NOTE:

This site incorporates side-by-side options for viewing the tutorial information and working in Snap! on a single screen. If you prefer another format, for instance if you have access to a dual screen or like to have two tabs open, use the full set of slides above instead.

Snap!

u1l1 chunk 1

To access snap outside of this site instead, use the link https://snap.berkeley.edu/snap/snap.html



Can't see your canvas? Press the expand button to view your code in action!

Programming a Game

You're going to program a game in which the goal is to click on Alonzo as he's moving around.

Instructions

u1l1 chunk 2
u1l1 chunk 3
u1l1 chunk 5

Vocabulary

Click each word to view the definition.

Sprites and Costumes

The Alonzo character is named after Alonzo Church, a major contributor to early computer science.

In this project, there are three objects related to Alonzo:

  • One is a sprite, which is like an actor on the stage who knows how to do many different things, such as walk around the stage and speak the lines of the play

  • The other two are costumes, picture that can be "worn" by a sprite.