This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

vessillo@tiscali.it
vessillo@tiscali.it presents ...

2013/5/30

feeding wombats 2.0

PURPOSE OF PROJECT: You must feed the wombats living in the desert.
Wombats eat the hamburgers dropped from an airplane and can reproduce
themselves after having eaten 3 hamburgers.
In the desert growth a lot of very poisoned mushrooms which cause
the wombats to die. You can help wombats burning out these mushrooms.
-------------------------
Playing Instructions:
Airplane movements
the movement of the airplane is driven by the arrow keys
and the keys D and S for clockwise and, respectiely, counter-clockwise rotations
to make Fire which burns the poisonous mushrooms
F key
to let drop an Hamburger and feed the wombats
H key
---------------------------------------------------------------------------
This project was used as an introduction to Greenfoot-programming
in a beginning course for Informatics for the students of the first year
in a secondary technical school in Italy.
It gives the opportunity to test some basic functionality such as:
- the random movement of the Wombat
- the controlled movement of the Airplane
- the generation of new objects (the Airplane let drop Hamburgers and Fire)
- the contact with other objects (the Wombat encounters Hamburgers and Mushrooms)
- the removal of an object, and the removal of the subject itself
(see the Wombat that dies when eats a Mushroom)
- the use of member variables (object's attributes) that keep track of
e.g. the number of Hamburger eaten by a Wombat
e.g. the time that goes by in order to let a Skull to disappear
e.g. the time that goes by in order to change the image of the Fire
during it's burning
- the movement across the boundaries of the World (see the Airplane)
- the settings of the World: the paint order of the objects
- the initialization of the World (the method populate())
- the acting of the World, which randomly generates new Mushrooms


VERSION or DATE: may 31st, 2013

3022 views / 625 in the last 7 days

Tags: game simulation with-source

open in greenfoot
Your browser does not support the canvas tag.

No Comments

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.