CS105L Introduction to Game Programming With Alice (Lab)
Spring 2012
Midterm (50 points)
Your exam will consist of two Alice world files:
- [firstname]-[lastname]-midterm1.a2w
- [firstname]-[lastname]-midterm2.a2w
The quality of your code (neatness, commenting, modularity)
counts. Meet spec first, but make sure you do so in a sensible
way. You will turn in your two Alice worlds to David or Animesh (via
our thumb drives) before you leave.
-
[25 points] Create a snowy world with a snowman and a two
snowwomen. The two snowwomen are chatting, and the snowman is
trying to get the attention of one of them. He turns to face the
snowwoman and says "Ahem." She turns to look at the snowman and he
blinks his eyes at her. She blushes (her head turns red), but she
is not interested in meeting him. She gives him a "cold shoulder"
and turns back to talk to her friend. He hangs his head in
disappointment and turns away.
-
[25 points total] Create a world with a room (e.g. GreenRoom), two
tables, a magician with a wand, a magician's hat, a rabbit and a
woman. The woman should be lying on one of the tables. The rabbit
should be in the hat and invisible, and the hat should on the
other table. [10 points for scenery]
-
[2 points] The scene should start with the magician saying, "I
now will perform a few tricks for you. Which trick do you wish
to see?"
-
[7 points] The user should be able to click on either the
woman or the hat.
-
If the user clicks on the woman, then the magician says
"Observe the floating woman!" Then he points his wand at
the woman. The woman should rise off the table and then
come down.
-
If the user clicks on the hat, then the magician says
"Come forth Archimedes!" Then he points his wand at the
hat. The rabbit should appear and jump out of the hat,
landing on the table.
-
[6 points] After the rabbit is out of the hat, he should say,
"Hey bub, you got any idea how cramped that hat is?" The
magician should say, "Ok you, back in the hat!" The rabbit
should say, "You gotta catch me first!" The user should be
able to click on the rabbit and make him go back in the hat.
-
Extra credit: Have the rabbit hop about the scene after
the above dialog so that it isn't quite so easy to click on
him.