CSC 305 Laboratory Activity


Week 2


Lab #3

  1. Login to the lab machine using the account of the partner who is the designated driver for this lab.
  2. The Greenfoot IDE is installed on the instructor's grader account.  Open a terminal and use the command:
    ~graderjd/bin/greenfoot/greenfoot
  3. A Splash screen appears, and then after a few moments, the IDE appears.
    Select "Help -> Greenfoot tutorial".
  4. Walk through the tutorial. (about 45 min).
    When you finish section 22, demonstrate to the instructor an execution of your completed scenario.
  5. (Optional) You may want to create a "shortcut" to Greenfoot on the launch bar. Right-click on the horizontal launch bar at the top of the screen, and select "Add to Panel". Choose "Custom application launcher" and click Add. In the Create Launcher dialog, type "Greenfoot" in the Name field. In the "command" field type the command shown in step 2 above. Complete the dialog.
If time remains, you should download and examine some of the scenarios available on the greenfoot web site. You will benefit from studying how to handle keyboard input and mouse input. For example, the lunar lander scenario or the asteroids scenario. Also, it will be helpful to study how the walls block the hamsters in the Hamster scenario.

After lab you should study the Greenfoot Programmer's Manual.