CS320n - Assignment 2
Placed online: Friday, February 16
Due: Friday, February 13 before 11 pm.
Value: 30 points. ~4% of final grade
Purpose: To create an animation with methods
This is individual work. You may talk to other students in the course about your design and for ideas, but you are to complete the Alice program by yourself. You may receive help from the instructor or the TA.
This assignment is based on the Cleanup Robot project the Learning to Program with Alice textbook.
Download the initial Alice world. (If you wish to create the initial scene on your own, you can. Just make it look somewhat similar to the scene below.)
The initial scene shows a room with four objects scattered
around the room. (a barbell, glass slipper, toy ball, and a green bottle) and
a gorilla robot.
Turning in your assignment. The assignment must be turned in no later than 11 pm on Friday, February 13. To turn in your assignment you must have your Microlab account id and password. Use these to turn in the program electronically using the Microlab turnin web page. Refer to this web page for instructions on using the turnin web page.
Hints and Tips
The animation does not have to be hyper realistic. Some collision between solid objects is okay and things that are being picked up don't have to actually being touching the gorilla
The center point of the gorilla is not along the floor. Thus the move to method is not a good idea. (The gorilla sinks into the floor.) Instead use the turn to face method and then move the gorilla forward with the regular move method. To determine how much to move set an initial value and then replace it with a function (Click on the function tab next to the method tab for the gorilla) and for the distance from the gorilla to the object being picked up.)
place a dummy object at the initial position to allow the gorilla to move back to that point.
To simulate picking up an object change the vehicle of the parameter to the gorilla. To do this, in the pick up method pick any object in the word and click on its properties tab. To change the vehicle as a command drag the vehicle property into the program and select the gorilla's arms as the new vehicle. Then drag the parameter for the thing being picked up to replace the original object.