Assignment:Using the provided file crash.a2w; modify it so that when the trucks get to close to each other, the condition becomes false and the loop terminates. (Hint: Use a "proximity" function to specify that the front wheels of each truck are at least .5 meters away from each other.) Also, add the following actions.
1. Make a crash sound when they "appear" to collide.
2. Make the front right wheel of the Cement truck roll down the street after the collision.
Print the code and turn in to your teacher.
-------------------------------------------------------------------------------------------------
The Loop Statement allows coders to control the number of loop executions.
Assignment:Open studentspeedingcar.a2w; Modify the Speedingcar world so that it calculates the total distance the car travels during its trip to the rest stop. Print the result (in the play output) when the car comes to a stop.
Speeding Car II
Modify SpeedingCar so that it displays the distance the car has traveled while it is moving. Continuously display the result on a 3D text object that stays visible in the upper portion of the disply window.
Horse Assignment:
Create an Alice world in which a horse (or other animal of your choice) is relaxing in a field. Define 5 different basic actions for the horse (sway it's tail, dip it's head, whinny, etc.) Use a loop to constantly keep the horse active, randomly choosing the next action. Add pauses of random duration between actions as well.
No comments:
Post a Comment