Tip:
Highlight text to annotate it
X
I am Oskar from The Coding Universe.
This is the first episode of a series called "Java Game Development".
In this video I will set up the environment needed for creating and running our
project in Eclipse.
You're going to use Eclipse,
the lightweight java game library,
and Slick Util.
So let's go to http://www.eclipse.org,
downloads, and select either the Eclipse IDE for Java developers or the classic
IDE.
You can download and install that and create a shortcut to your start bar.
Next we're going to download the lightweight Java game library by going to htttp://www.lwjgl.org,
download,
stable version,
and the zip file
So I have already downloaded that I am not going to download it right now.
For the Slick Util you need to go to wiki,
slick_util library introduction,
and click on this link here.
Click on the jar file.
And we'll just save it to our desktop.
So now let's open up Eclipse.
I have already set up my workspace to that folder there.
Create a new project,
we're going to call it "JGame".
Just hit ENTER.
Now we can minimize Eclipse.
Open up the project folder within the workspace.
And also open up the lightweight java game library zip file.
We are going to create a new folder called "lib".
In that folder we're going to create two new folders.
The first is called "jars",
and the second is called "natives-win".
Going over to WinRAR,
we can copy
the following jar files.
We're also going to go to
the Windows native folder.
Now copy all the dll files into the "natives-win" folder.
Oh, and we also need to add the slick_util jar file into the jars folder.
Let's go back into Eclipse
and open up our project properties.
Go to "Java Build Path" and
add some external jars.
So go to our jars folder and
select all the jar files.
Click on the lightweight Java game library jar file and
specify the natives folder.
There we go! It should all be up and running.
But just to test we're going to create a class
and call it "Main".
In this class we're going to type:
"Display.create();".
Do this try-clause.
Once I run it should show
a window
and the window should immediately disappear (do not copy that pronounciation) again.
It worked!
Thanks for watching!