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

Report as inappropriate.

danpost
danpost presents ...

2015/4/2

JerooFoot Application

This was inspired by 'JerooFoot + HugWall-AI v1.0' by Diljot at 'http://www.greenfoot.org/scenarios/13527'.

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.

The "escape" key has been implemented to toggle back and forth between build mode and an actual map running of a specific map so you can see how it would actually look like.

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.

MISC:
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.

4192 views / 31 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 is ignoring the <APPLET> tag.
DiljotDiljot

2015/4/2

@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.
willMwillM

2015/4/2

I need RNGesus for this!!
willMwillM

2015/4/2

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.
jdf1234567jdf1234567

2015/4/19

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
danpostdanpost

2015/4/19

@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.
jdf1234567jdf1234567

2015/4/22

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
jdf1234567jdf1234567

2015/4/22

[no write permission
A new version of this scenario was uploaded on 2020-10-25 18:02:12 UTC
A new version of this scenario was uploaded on 2020-10-25 18:52:11 UTC

See all comments

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

Who likes this?

jdf1234567 willM