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

Report as inappropriate.

danpost presents ...


JerooFoot Application

This was inspired by 'JerooFoot + HugWall-AI v1.0' by Diljot at ''.

The project has two modes -- a build mode, where you can create your own maps and add actors to the jeroo world; and a testing mode, where you can watch the behavior of 'jeroo' (the main actor in the jeroo world). Edit the 'go' method in the Jeroo class to change its behavior.

Use the 'Test/Build' switch to alternate between the two modes.

BUILD mode:
The center control is used to select the current image to work with. The first three, 'barrier', 'grass' and 'water', are cell backgrounds. The next three, 'jeroo', 'net' and 'flower', are actors within the world. The last two, 'control' and 'pauser', change the active state of the jeroo world.

PLEASE NOTE: a 'control' object must be placed into the jeroo world so that you can click on it to set the jeroo world active (the initial state of the jeroo world is 'not active').

Clicking on cells and actors in the jeroo world while in BUILD mode will either change the cell background image or add, move, rotate and remove actors depending on the selected image.

TEST mode:
While in this mode, you can click on the 'control' actor to toggle the active state of the jeroo world.

Click the 'Reset' button to revert to the original state of the map.
Click the 'DumpData' button to produce code that can be placed in the Map class to add or change the maps stored there in the arrays.
Click the left or right arrows on the map control while in BUILD mode to iterate though the maps currently stored in the Map class (currently there are two maps).

Good luck and have fun.

2165 views / 6 in the last 7 days

2 votes | 0 in the last 7 days

Tags: simulation demo with-source danpost application maps pip jeroo hugwall controls

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


Please leave any comments or suggestions. Oh, I forgot to mention that you can press the 'n' key to iterate through the stored maps (currently there are two).


@danpost, this is really interesting, I really like how you implemented the maps. I'm going to have to take a much closer look at the map class when I have time. Good work.


I need RNGesus for this!!


itz fun douh
A new version of this scenario was uploaded on 2015-04-04 01:41:07 UTC Added control for changing maps. Also minor adjustments; plus more documentation.


like ur way to safe the map. I've done sth about mapping as well, but I have a extra safefile for every level. Ur problem is, that u can't edit ur .java files anymore when you export it to a jar, isn't it? JD


@jdf1234567, it was not my intention to edit the .java files. However, if I was to export it to a jar, I would not try to edit the .java file; but, instead create .txt or .dat files outside the jar that could be read back in.


That was a thing I've been thinking about, but when you upload it to this website for instance, it doesn't work out as well


[no write permission

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

Who likes this?

jdf1234567 willM