Listing 11. Source code for the mainClose method.

Penguins02's Code

Created by: Dick Baldwin

world

Methods

  public void mainClose ( ) {
    
       // Set viewpoint of TextTheEnd and make it visible
  TextTheEnd .setPointOfView( world );
  TextTheEnd .moveAwayFrom( target = hole , amount = 200 meters ); duration = 0 seconds
  TextTheEnd .set( isShowing , true ); duration = 0 seconds
  // Make the text fly in, rotating over a 2-second interval
  doTogether {
       TextTheEnd .moveTo( hole ); duration = 3 seconds
  TextTheEnd .turn( RIGHT , 2 revolutions ); duration = 3 seconds
  }
  }