interactive multimedia

Final Project - Stadium Vendor

Kevin Scott
Spring 2008

Game Construction

  • SeatingSection Class - The SeatingSection class is responsible for building a seating section on a Sprite. This class randomizes the color of the patron's shirt and whether the patron is a man, woman, girl or boy.
  • Patron Class - The Patron class is responsible for all things related to an active patron. It handles the timing for the patron wanting something, and then the randomizing what the patron wants. Calls to the sound effects class are from the Patron class, as are the arm waving motions. The arc of the patrons wave, and the speed at which they wave are managed through gets and sets on this class.  Proximity to the mouse cursor is handled from this class.
  • InactivePatron class - The InactivePatron class generates all the non active patrons. Inactive patrons were used to reduce the computing load of the game.
  • SoundEffects Class - Utility class that handles all my sound loading and timing - reused with minor modifications form the lab 3 image browser project.
  • RandomUtils Class - The RandomUtils class is a class with static methods for simplifying the generation of random values; i.e. RandomUtils.returnRandomBool() returns a random true or false, RandomUtils.returnFloorInt(intMaxValue:int) returns a random integer from 0 to the max value provided inclusive.
  • If you want to hear your voice in the game, send individual wave files to kscott4<AT>comcast<dot>net with subject line: vendor game sounds - I can use variations on - want beer, want candy, want popcorn, wrong order, thanks, and hurry up. Be creative - just try to keep the files small.
  • If you want to see your face in the game - send a png of around 90x100 to same address with subject: vendor game faces and I'll work you in.