Final Project - CSE 167 - Student: Nancy Ngo


This project is a replica of a Jack-in-the-box toy. I got the idea while watching my nephew play with his own Jack-in-the-box. If the handle is cranked a full time, a balloon will fly up. The balloon fades color as it gets higher into the air. If the box is open, balloons will keep flying out. You can also control the growth of the baloon up to a maximum radius of 2. When the box is closed and the balloon has been popped, a new balloon will not be created until prompted to do so.
Controls:
Arrow keys: Control viewpoint
"w"or "W" : Toggle wireframe mode
"N" or "n": Turns the crank (eight times to open)
"G" or "g": Makes the balloon grow
"1" : If you pop your balloon in the box to create a new one

For more info on my project, check out the README file. Or, entice yourself and try it out FinalProject.exe

List of figures


  • This is the box initially closed. It is in wire frame mode to show the balloon inside.

  • While the box is closed, if the balloon grows too big it will pop. The only way to retrieve another balloon is to press "1."

  • When the handle is cranked fully, the balloon will keep flying out over and over again. When popped, another one will fly out.

  • This shows the balloon fading color (eventually dissapearing) as it flies higher and higher.