July 3

July 2 July 4

Today’s handouts

Review and extend Git

Here are a few Linux Commands you may find handy:


Here are Greenfoot Classes and method to pay particular attention to:

  • World: there is exactly one instance of World; it provides the “playing field” for the Actors. Methods we used:
    • World( width, height, cellsize ) initializes the World
    • removeObject( object ) erases a specific object from the World
  • Actor: everything else in your Greenfoot project is some kind of Actor; that is, classes you create that inherit from Actor. Methods we used:
    • act(): we must define this method for each Actor child class we define to tell the object what to do for each “tick” of the World “clock”.
    • move( step ) moves an Actor a given number of steps
    • turn( degrees ) changes the direction the Actor is pointing (and moving)
    • getWorld() gets the World object so we can tell it to do something
  • Greenfoot: this provides access to system items such as the keyboard, the mouse, etc. Method we used:
    • isKeyDown( key ) tells us whether a particular key is pressed

Greenfoot Wombat Slides

User Scenarios Online

Turtle Exercise

Homework: Bobby the Snake

Graded assignment due Monday. Get started and we’ll review questions and problems Friday.


July 2 July 4