Today's classwork goes along with Chapter 4, Section 1.
You will create three Alice worlds today. The following work needs to be checked off when you have completed it.
In this part you will setup a Camera view to move with an object. All the code entered will be placed into world.myFirstMethod.
(TROUBLE SHOOTING: Your laptop may rename the file when it downloads it
as skyride.zip or skyride.a2w.zip. Your laptop does not know about alice
worlds and thinks the file is a .zip file.
If this happens you should try
to rename it back to skyride.a2w. This may be difficult to do.
DO NOT UNPACK THE .ZIP FILE or EXTRACT FILES FROM IT.
ALTERNATIVELY, you can still load
the file with the .zip extension, because it really is an Alice world that
just has a bad file extension and
not
a .zip file. In Alice, when trying to open the file, at the
bottom
of the window, there is an option "Files of Type:". The default is
A2W files. Instead select "All files" and you will be able to load
skyride.zip or skyride.a2w.zip(because it really is an Alice world).
Create a world (name it helicopterFlight.a2w, with a helicopter (Vehicles folder), airport(Buildings), and a control tower(Buildings). Create a circleTower method that makes the helicopter fly toward the control tower and then around it. In myFirstMethod, call the circleTower method twice and then make the helicopter land on the airport landing strip.
Note that if your helicopter goes out of sight, it may not be close enough to the tower, try moving it in closer before having it circle.
If you finish early, feel free to embelish your animations.