Introduction To Greenfoot. What is Greenfoot? Greenfoot: is an Integrated Development Environment. (Remember, an IDE is a program that lets you create other programs) uses the Java Programming Language. is aimed at creating 2D graphical applications. Greenfoot is great for creating:
If a class is striped, it needs to be compiled.
You can right-click a class, to see its constructor. “Scenarios.”
Select the constructor, and then you can add an instance of the class to the world.
Shift-Click: Another way of adding objects is to click on the class, press shift, and click in the world.
The Run button simply calls the Act method over and over again.
The Act button calls the Act Method. The objects in the world will do whatever they are programmed to do.
The speed at which the Run button calls the act method can be altered here.
move( ); //This moves the object forward.
turn(-12); //This turns the object -12 degrees
} //This code turns the object whenever the left key is pressed down.