Zebra0.com

aliceAlice Final Project: Step 6

Alice Final Project: Step 6

Step 6: Biped Procedures
Open the final project, lastname_firstname_finalproject5.a3p, and save it as lastname_firstname_finalproject6.a3p.  From the actions you listed in step 3, create at least 3 biped procedures. For each procedure add comments to tell what occurs. Add calls for each procedure at the appropriate places, replacing the code that you wrote previously.
The procedures will work for all instances of the class, so add parameters to the procedures so that some can walk faster or slower, etc. Add calls to these procedures to scene procedures, not MyFirstMethod.
You may have the same actions in more than one scene. For instance, walking may occur for multiple characters, in multiple scenes.
What biped procedures have you added: _________, _________, _________,
What parameters have you added to the biped procedures? _________, _________, _________,
Which scene procedures call these biped procedures? _________, _________, _________,
Submit this document with all previous steps completed (nothing deleted) and the Lastname_Firstname_FinalProject6.a3p file in assignments.


Jack and the Beanstalk Example:

Step 6: Biped Procedures
Open the final project, lastname_firstname_finalproject5.a3p, and save it as lastname_firstname_finalproject6.a3p.  From the actions you listed in step 3, create at least 3 biped procedures. For each procedure add comments to tell what occurs. Add calls for each procedure at the appropriate places, replacing the code that you wrote previously.
The procedures will work for all instances of the class, so add parameters to the procedures so that some can walk faster or slower, etc. Add calls to these procedures to scene procedures, not MyFirstMethod.
You may have the same actions in more than one scene. For instance, walking may occur for multiple characters, in multiple scenes.
What biped procedures have you added: ClimbUp, Throw, Chop
What parameters have you added to the biped procedures
ClimbUp has distance to move,Throw has  Amount to turn elbow and shoulder, Chop has number of times to chop.
Which scene procedures call these biped procedures? Climb up in Beanstalk, climb down in Chase, throw in MagicBeans, chop in GiantFalls
Submit this document with all previous steps completed (nothing deleted) and the Lastname_Firstname_FinalProject6.a3p file in assignments.

Submit this document with steps one and two completed (nothing deleted) and the Lastname_Firstname_FinalProject6.a3p file in assignments.

Download the Jack in the Beanstalk step 6 program to experiment.