|
The code entry window allows the user to create and modify Pollys. Try typing sally = new PollyModel(Color.YELLOW, "Sally"); in the code window, then press the submit button. This should instantiate a new Polly in the viewport. The instance of PollyModel sally can then be modified in a similar manner. On a new line, type sally.setSize(0.5); to reduce Sally's size by 1/2. Begin a new line again, then type sally.setLocation(2.0, 0.0, 3.0); to move Sally to a new location.
|
|
Click and drag with the left mouse button to change the camera view in the Rapunsel viewport. The keyboard keys, 'P', 'W', and 'D' place the viewport into different user modes. In these user modes clicking the mouse refers to the right mouse button or, for single button mice, hold down the CTRL key while clicking any mouse button. Pressing the 'P' key will put the viewport into Add Polly mode. In Add Polly mode, use (right-)mouse clicks to add Pollys. Pressing the 'W' key will put the viewport into Add Wall mode. In Add Wall mode, use mouse clicks to click and draw new walls in the viewport. Pressing the 'D' key will put the viewport into Polly Direction mode. In Polly Direction mode, right click on an existing Polly to select it, then right-click on a floor location to give the Polly goal location.
|