Wednesday, August 8, 2018

Snap! U2L1-ClickAlonzo


Circle 1: When the program starts, initialize the score variable to 0 and set ghost effect to 0 so Alonzo is fully visible. Then make Alonzo welcome the user.

Circle 2: When Alonzo is clicked, the score and ghost effect increase. Alonzo becomes less transparent and randomly moves to a location every second. After 10 clicks, the user wins and the game is over.

No comments:

Post a Comment