(PUDG) The Greenfoot Interface Lesson

The Greenfoot Interface

Greenfoot is an integrated programming environment that allows development of two-dimensional graphical applications such as animations, games and simulations.  It is developed and maintained at the University of Kent and La Trobe University, with support from Oracle and uses the Java programming language. Games are programmed in standard textual Java code with visual execution.

There are several reasons for using this environment.

  1. You will learn the Java programming language while you create games using the text editor.    
  2. Java is a popular language so there are many benefits to learning it.
  3. It is a simple interface so you will focus more on the programming rather than learning the environment. Some game engines are very complicated and require a high degree of learning before using the program.
  4. The program is easily accessible. It can be downloaded to a Windows or Mac computer. It can also be downloaded as a standalone version to run from external hard drive. You can download a copy to your home computer and to an external flash drive or hard drive to use on any computer.

DOWNLOAD JAVA AND GREENFOOT

Examining the Interface and Object Oriented Programming

Greenfoot: wombats
Scenario Edit Controls Help
Menu - Save and Create New Scenarios
Share...
The World
This is where the action for your scenario will take place.

Objects are created from Classes. They are called an instance of the class.
Class Display
Classes are shown in a class hierarchy.
Actor is the main class from the Greenfoot API,
Wombat and Leaf are subclasses of Actor.

Speed:
Execution Controls
⚫ Act: Runs all actions in the scenario once.
• Run/pause: Runs all actions in the scenario repeatedly until Pause is clicked.
⚫ Reset: Pauses the scenario or resets the scenario back to its starting position.
• Speed: Executes actions faster or slower.

[CC BY 4.0] UNLESS OTHERWISE NOTED | IMAGES: LICENSED AND USED ACCORDING TO TERMS OF SUBSCRIPTION