Site search


Scenarios

If you have developed a scenario, we very much like to encourage you to share it with everyone else by sending it to us.

Standard scenarios (included with greenfoot)

ants

By Michael Kölling

screenshot

This scenario shows ant colonies looking for food. Ants lay a trail of pheromones to lead other ants to the food.

This is a pretty complete scenarion, demonstrating many different ways to generate graphics, as well as nice emergent behaviour.

wombats

By Michael Kölling

screenshot

The 'wombats' and 'wombats2' scenarios were written as a sample for the greenfoot tutorial. It doesn't do very much - wombats walk around and eat some leaves (if they're lucky). The tutorial takes you through some activities with this scenario to familiarise users with the greenfoot world.

lunar lander

By Poul Henriksen

screenshot

This is a (fairly simple) implementation of the old Lunar Lander favourite.

This example is used to demonstrate dealing with key input (you fire the rocket engine by pressing the 'arrow down' key). It's a nice example of a simple game. Watch for the explosions!

Balloons

By Poul Henriksen

screenshot

A simple game illustrating the use of the mouse support introduced in Greenfoot version 1.4.0.

Additional scenarios

turtleGraphics

By Poul Henriksen

screenshot
download

An implementation of the well-known, and still popular turtle graphics framework. Turtles are programmed to move over the screen while dragging a pen along, thus creating interesting drawings.

This scenario demonstrates how turtles can be easily programmed in greenfoot, with all the advantages of programmability, interaction, concurrency of multiple turtles, and more.

robots

By Poul Henriksen

screenshot
download

'robots' is a simple robot microworld inspired by Karel the Robot. Robots, Beepers and Walls are placed in a grid, and the robots can then be programmed to perform various tasks.

It is intended to demonstrate how greenfoot may be used for Karel-like scenarios. Not, this scenario isnot yet ready for use in teaching - it rather is intended to show how such a scenario may be structured. Some work may be needed before it is used with students.

shapes

By Tony Beaumont

screenshot
download

'shapes' was inspired by the shapes example distributed with BlueJ (and discussed in the first chapter of the Objects First book). While BlueJ represents a slightly schizophrenic view of the objects (it has two separate representations), this project demonstrates how greenfoot solves this problem and allows direct interaction with the graphical shapes.
boids

By Poul Henriksen

screenshot
download

A scenario that demonstrates flocking behaviour. Bird-like creatures ("boids") fly around and display some social behaviour: they like to flock together.

Someone could make this scenario much more interesting by putting some obstacles in...

lifts

By Michael Kölling

screenshot
download

A lift simulation. This scenario shows three lifts in a building with several stories. People appear and move up or down in lifts.

This scenario is incomplete. It shows the basics, but several aspects are not implemented (people, for example, don't disappear from the floors; no sensible algorithm is implemented for lifts, etc.)

The main purpose of this scenario is to serve as a model for animations of this kind.

TextWorlds

By John Pais

screenshot
download

These scenarios only work with Greenfoot releases prior to 1.4.0

A sequence of four elementary projects illustrating as simply as possible how to do some basic things with images. In addition, I have included four QuizWorld projects: QuizWorld00, QuizWorld01, QuizWorld02, and QuizWorld00-02, three ten question quizzes and one combined thirty question quiz which demonstrates how easy it is to combine them.

The collection of projects illustrate how I plan on using this material with students.

A second version, TextWorldsEncrypt, includes RSA encryption/decryption to the QuizWorld projects for the truth value array of each question. The information to determine the truth values of each question answer is still available (with effort) in the decrypt method, however when taking a quiz one can no longer immediately see it merely by opening the corresponding numbered question file.

Asteroids

By Poul Henriksen

screenshot
download

A simple implementation of the classic space shooter game Asteroids. The goal of the game is to navigate an asteroid field with a spaceship, without being hit by the asteriods. The spaceship is navigated by using the arrow keys. The asteriods can be shot by pressing the space-bar. When asteriods are hit enough times they will divide into two smaller asteriods or disappear.

This scenario demonstrates how to use keyboard controlled actors and sound.

Hamster

By Dietrich Boles

screenshot
download

The "Java-Hamster-Modell" is a well known microworld in Germany (see www.java-hamster-modell.de ). There is only a German version. It is similar to Karel the robot.

This is a Greenfoot scenario for the "Java-Hamster-Modell" (in German).

Piano

By Michael Kölling

screenshot
download

A simple on-screen piano. This project demonstrates how you can play sounds easily. You could also alter the sounds being played by recording your own, and binding your own sound files to the keys.
Pong

By Thomas Koch

screenshot
download

A nice implementation of the classic 'Pong' game.

(Uses the keys 'a' and 'z' for controls - users with a non-English keyboard layout - e.g. German - may have to change the key assignments in class 'RedPaddle'...)

Maze

By Paul E. Buis

screenshot
download

Here is a scenario I developed to solve mazes. It is essentially a depth first search of the graph the represents the maze.
Breakout

By Barbara Ericson

screenshot
download

Classic breakout game.

MiksAsteroids

By Michael Kölling

screenshot
download

A variation of Poul's asteroids game, with multiple levels, score counting, and a "Game Over" board.
Foxes and Rabbits

By Michael Kölling

screenshot
download

This is a typical predetor/prey simulation. Rabbits breed, foxes eat rabbits. This project also contains an object that plots the population of foxes and rabbits in a graph.
Animation

By Michael Kölling

screenshot
download

This scenario is a very simple demo showing how to use the 'AnimatedActor' helper class to use an actor with an animated image.
RoboCode

By Daniel Heffernan and Chris Exton

screenshot
download

An implementation of the classic RoboCode framework in Greenfoot.
MineSweeper

By Joseph Lenton

screenshot
download

An implementation of the classic Mine Sweeper game. This game illustrates the use of the mouse support introduced in Greenfoot version 1.4.0.
Wave

By Michael Kölling

screenshot
live demo
download

A simple physics demo: play with making waves on a string. (Before downloading, you can also try out this online demo.)

 


maintained by Poul Henriksen and Michael Kölling.