<< Back to School Main | < Back to IDEV 211 | ^ CodemasterShawn Home

Shawn South
Project 1
IDEV 211 - Client Side Scripting

Choose your own adventure


Objective: Collect information from the user. Create a customized story for the user based on that information.
Requirements: Use the following Javascript language components:
  • function with parameter and return statement
  • variable
  • control statement
  • event handler
  • mathematical operator
  • comparison operator
  • assignment operator
  • prompt statement
  • confirm statement
  • switch control statment

Favorite type of food?
Pick a movie genre:
Where do you like to live?
What do you do with your money?
Your gender:  Male     Female
    

Here is your story...



Notes about this assignment:

For this assignment, I wanted to do something a little more complex than just a simple MadLibs type of story creation. The selections made above are not used directly in the creation of the story, but each one is tied to an element of the story or the persons and objects within it. Furthermore, the choice of restaurant is determined by a combination of two of the above selections (try mixing and matching Favorite Food and Where You Like to Live). I also wanted to use some advanced techniques that I'd read about recently (the gender identification in the story is referenced from a literal object).

So, while the story is short, I hope that it is enjoyable and you find the code interesting :-)