Danny+Lindsay

Ch. 6 Flow Chart:

= CH6code's Code = = Created by: Danny Lindsay and Eric Fehringer =

Events

 * **When the world starts** ||
 * **Do:** || || **world.my first method** || ||


 * **When** S **is typed** ||
 * **Do:** || || **world.Downward** || ||


 * **When** W **is typed** ||
 * **Do:** || || **world.Upward** || ||


 * ****Let** **move** **helicopter** ** ||


 * **When** X **is typed** ||
 * **Do:** || || **world.Upward** || ||

Methods

 * **world.my first method** //No variables// ||
 * |||| **Do in order** ||
 * ^  ||   || **//** **Starts the program.** ||
 * ^  ||^   || **world.Helicopter Start** ||
 * ^  ||^   || **Wait** **10** seconds ||
 * ^  ||^   || **world.end** ||


 * **world.Helicopter Start** //No variables// ||
 * |||||| **Do together** ||
 * ^  ||   |||| **//** **Tells the helicopter to spin its blades and prompt the user to control it.** ||
 * ^  ||^   |||| **Loop** **infinity** times **times** ||
 * ^  ||^   ||   || **helicopter.heli blade** ||
 * ^  ||^   |||| **Do in order** ||
 * ^  ||^   ||   || **Wait** **2** seconds ||
 * ^  ||^   ||^   ||  **helicopter** **move** **up** **30** meters duration = **7** seconds  ||
 * ^  ||^   ||^   || **helicopter** **say** **Use Arrow keys to move** duration = **4** seconds ||
 * ^  ||^   ||^   || **helicopter** **say** **Use X to Move upwards** duration = **4** seconds ||
 * ^  ||^   ||^   || **helicopter** **say** **Use Space Bar to move downwards** duration = **4** seconds ||


 * **world.Downward** **0** **=** **0** ||
 * || **//** **Tells the helicopter to move downward when Space or S is typed.** ||
 * ^  || **helicopter** **move** **down** **1** meter duration = **0.25** seconds style = **abruptly** ||


 * **world.Upward** **500** **=** **100** ||
 * |||||| **//** **Tells the helicopter to move upward when X or W is typed.** ||
 * ^  |||||| **Do in order** ||
 * ^  ||   |||| **helicopter.In The Air** **set** **value** **to** **true** ||
 * ^  ||^   |||| **If** ( ( **helicopter** **distance above** **carrier** ) **<=** **500** ) ||
 * ^  ||^   ||   || **helicopter** **move** **up** **1** meter duration = **0.25** seconds style = **abruptly** ||
 * ^  ||^   |||| **Else** ||
 * ^  ||^   ||   || **helicopter.In The Air** **set** **value** **to** **false** ||


 * **world.end** **distanceToCarrier** **=** **1** ||
 * |||||| **Do in order** ||
 * ^  ||   |||| **//** **Tells the user to land.** ||
 * ^  ||^   |||| **helicopter** **say** **Please land the helicopter back on the carrier.** ||
 * ^  ||^   |||| **If** ( ( **helicopter** **distance above** **carrier** ) **==** **1** ) ||
 * ^  ||^   ||   || **helicopter** **say** **Congratulations!** ||
 * ^  ||^   |||| **Else** ||
 * ^  ||^   ||   || //Do Nothing// ||

Methods

 * **helicopter.heli blade** //No variables// ||
 * |||||| **Do together** ||
 * ^  ||   |||| **Loop** **infinity** times **times** ||
 * ^  ||^   ||   || **helicopter.backRotor** **turn** **forward** **1** revolution duration = **0.25** seconds style = **abruptly** ||
 * ^  ||^   |||| **Loop** **infinity** times **times** ||
 * ^  ||^   ||   || **helicopter.propeller** **turn** **left** **1** revolution duration = **0.25** seconds style = **abruptly** ||

=Ch 4=




 * **When the world starts** ||
 * **Do:** ||  || **world.my first method** ||   ||

Methods
//No variables// ||
 * **world.my first method**
 * |||| **Do in order** ||
 * ^  ||   || **camera** **set point of view to** **dummy** duration = **2** seconds style = **end gently** ||
 * ^  ||^   || **camera** **set point of view to** **dummy2** duration = **2** seconds style = **end gently** ||
 * ^  ||^   || **camera** **set point of view to** **dummy6** duration = **2** seconds ||
 * ^  |||| **Do in order** ||
 * ^  ||   || **gamzerguy** **say** **Hello, friend.** duration = **2** seconds ||
 * ^  ||^   || **gamzerguy** **say** **I'm thirsty. How about a cold one?** duration = **2** seconds ||
 * ^  |||| **If** ( **ask user for yes or no** question = **Yep or Nope?** title = **Should I grab a cold one?** ) ||
 * ^  ||   || **camera** **set point of view to** **dummy5** ||
 * ^  ||^   || **gamzerguy.grabColdOne** ||
 * ^  |||| **Else** ||
 * ^  ||   || **gamzerguy** **say** **:(** ||

//No variables// ||
 * **world.grabColdOneTrue**
 * || //Do Nothing// ||

Methods

 * **gamzerguy.grabColdOne**
 * distanceToColdOne** **=** **0.25** ||
 * |||||| **distanceToColdOne** **set** **value** **to** ( **gamzerguy** **distance in front of** **coldOne** ) ||
 * ^  |||||| **Do together** ||
 * ^  ||   |||| **gamzerguy.walk** SetWalkTime = **2** ||
 * ^  ||^   |||| **gamzerguy** **move** **backward** ( **(** **distanceToColdOne** **-** **3** **)** ) duration = **2** seconds ||
 * ^  |||||| **Do in order** ||
 * ^  ||   |||| **gamzerguy.UpperBody.Chest.RightUpperArm.RightForearm** **turn** **left** **.07** revolutions ||
 * ^  ||^   |||| **Do together** ||
 * ^  ||^   ||   || **gamzerguy.UpperBody.Chest.RightUpperArm.RightForearm** **turn** **left** **0.3** revolutions ||
 * ^  ||^   ||^   || **coldOne** **move** **up** **1** meter ||
 * ^  ||^   ||^   || **coldOne** **move** **right** **0.1** meters ||
 * ^  ||^   ||^   || **coldOne** **roll** **right** **.05** revolutions ||
 * ^  ||^   |||| **Do together** ||
 * ^  ||^   ||   || **gamzerguy.UpperBody.Chest.RightUpperArm.RightForearm** **turn** **right** **0.3** revolutions ||
 * ^  ||^   ||^   || **coldOne** **move** **down** **1** meter ||
 * ^  ||^   ||^   || **coldOne** **move** **left** **0.1** meters ||
 * ^  ||^   ||^   || **coldOne** **roll** **left** **.05** revolutions ||
 * ^  ||^   |||| **gamzerguy** **say** **Excellent!** ||