Professional Documents
Culture Documents
TI 3A
4617010051
Practice 2-2
1. Position an object using a one-shot procedure.
a. Move the rabbit 2 meters to the left using a one-shot procedure.
2. Add multiple objects to a scene.
a. Add a castle wall and a hedge to the scene.
b. Make sure the objects are not all located in the center of the scene. (HINT: use a
one-shot procedure to move an object.)
3. Position objects using the drag-and-drop method.
a. Position the castle wall so that it is on the far left of the scene using drag and
drop.
b. Rotate the castle wall so that position is angled behind the white rabbit and the
face of the wall is fully visible.
4. Declare a procedure.
a. Declare a "bipedHop" procedure for all bipeds. Have the procedure make the
biped hop 0.25 meters in the air and 0.5 meters forward, and return to the ground.
Add the new procedure to myFirstMethod before coding.
5. Add a declared procedure.
a. Have the White Rabbit turn and take three hops using a declared procedure. If the
rabbit collides with any of the scenery objects rearrange them to avoid collisions.
6. Access and edit a declared procedure.
a. Revise the bipedHop procedure so that the hop begins and ends gently and so the
duration for each hop is a total of .5 seconds.
7. Use inherited procedures.
a. Add a bunny to the scene next to the white rabbit. Have the bunny follow the
white rabbit with 2 hops.