-
Notifications
You must be signed in to change notification settings - Fork 1
Setting up Genhat with Eclipse
If you'd like to work on Genhat or run it on your computer, you'll need the project itself, the Lightweight Java Game Library (LWJGL), and Slick2D.
#####Step 1: Install the EGit plugin for Eclipse In Eclipse, click on Help->Install New Software... and get it from one of the EGit update sites listed here: http://www.eclipse.org/egit/download/
#####Step 2: Import the project from GitHub
In Eclipse, right click in the Package Explorer window and choose Import...
Select Git->Projects From Git, click Next >, select URI, click Next >, and copy the SSH clone URL from the GitHub page for the project as the URI.
Continue clicking "Next >" and following the instructions until the project is in your workspace.
#####Step 3: Download LWJGL and Slick2D
You can download the latest version of LWJGL here: http://lwjgl.org/download.php
You can download the latest version of Slick2D here: http://slick.ninjacave.com/
#####Step 4: Setup the project with LWJGL and Slick2D
Detailed instructions for this step can be found here: http://www.lwjgl.org/wiki/index.php?title=Setting_Up_LWJGL_with_Eclipse
(edit the properties of the project from GitHub rather than a new project)
NOTE: The jars may already be on the build path; if they are, you can select them and click edit to set the correct file path instead of adding the new libraries as suggested in the tutorial.
Now you should be able to run the main file, located in src->main->GameMain.java. If everything is setup correctly, a window should pop up with the current game demo running.