Ok, I'll go step by step up to setting up to compilation. You must
have a JDK to do this so I'm just going to assume you have one. First
open eclipse and pick a workspace. This can be any empty folder. Then
right click on the package explorer work area and create a new
project, or alternatively create a new project using the pull down
menus. Name it whatever.
Next using right clicking or the pull down menus find the import
option. A window comes up. Select Filesystem under general for the
import type. Find the src file from the marioai folder you downloaded
from the site here. Select the ch and wox folders and import them. Now
drag them into your src folder in your project if they aren't there by
default.
Next right click on your project in the package explorer area and
create a new folder. Name it Libs. Find the jdom.jar file in the
marioai folder and drag it or import it into this folder. I just drag
from the filesystem to the eclipse window and it works. Then right
click on that jdom.jar in eclipse and select "add to build path" under
build path in the right click menu.
Next under the src folder in the project exlorer find the Play.java
file under ch.idsia.scenarios. Right click it select "run as" -> "java
application" this will result in a window with lots of red text appear
showing errors. Now we get to the fun part of moving resources.
In your actual filesystem find your workspace and project folder. In
that find the bin folder. also find the img folder in the main
subfolder in marioai.
move all the items from the img folder into /bin/ch/idsia/mario/engine
There are like 5 other work around for this but they all involve
changing the code and quite frankly you just want it up and running. I
would suggest mirroring all those files in the src directory tree as
well. That is putting them all in, /src/ch/idsia/mario/engine . If
you do do that then go to eclipse and select your project and press F5
to refresh the project with the filesystem. Then again Right click
Play.java->"run as"->"java application" and you are ready to go.
.. yeah its a lot, but I like eclipse a lot and this project wasn't
made to work with it easily.
To change command line arguments click on the arrow next to the play
button and select run configurations, there you can change the command
line arguments, which is necessary to select the class you want the
game to use for the AI to control mario
By default it uses a human ai. controls are left right down (don't
press up it causes an error last i checked) s is jump a is speed/
fireball
best of luck