THIS GUIDE ASSUMES YOU KNOW THE FOLLOWING, DO NOT CONTINUE IF YOU DO NOT UNDERSTAND THESE IDEAS FOR I WILL NOT TEACH WHAT THEY ARE IN THESE TUTORIALS:
-Arrays[both 1d][ and 2d]
-LinkedList and ArrayList
-The following data types:
-String
-int
-float
-boolean
-Vector2d
-The following variable modifiers and scopes
-public
-private
-protected
-static
-final
-synchronized
-Polymorphism(INCREDIBLY IMPORTANT)
-Initializing and instantiating methods
-For, foreach loops
-Basic logic operators such as || && != ! == and so on so forth
-What parameters and methods are
-Javas main(String[] args) method
Great now that you understand the requirements lets get started =) Hello my name is selvyre and i am a java programmer of 8 years exp and throughout this series im going to be teaching you how to make a 2d RPG
Downloads required:
JDK 7 from this site for your OS
Eclipse Java IDE
Lightweight Java Game Library
Slick 2D
Ok so first off obviously install JDK and then unrar eclipse some where and open it up, you are going to have to select a workspace for eclipse to store your projects im just gonna use a folder on my desktop so cleverly named "Ownedcore game tut" but you can make it whatever.
Next you need to make a new java project like so (click HERE for a pic on how to do so) and name it whatever you want im gonna call mine "OwnedCoreGame"
Next we need to make 2 folders in the project by right clicking your project and doing "new folder" we need 1 named res and 1 named lib (dont think i need a pic demonstrating this) now inside the lib folder you need to put lwjgl(extracted folder not the rar) and slick2d(also extracted and not the rar) and then hit refresh on your project(right-click ---> refresh)and you should see them pop up in your lib folder
Now for basically the trickiest part of the setup, doing our referenced libraries. First you need to right click your project and do properties, you should see a little window pop up, you need to add the jars by doing as follows in this picture HERE, after clicking add external JARS the first time you need to navigate to your workspace folder(mine is ownedcore game somthinoruther like that on my desktop) then your project folder and then lib, THE FIRST JAR YOU ADD will be in this directory: WORKSPACE FOLDER/PROJECTFOLDER/LIB/LWJGL/JAR/lwjgl.jar THE SECOND JAR TO ADD IS IN THIS DIRECTORY: WORKSPACE FOLDER/PROJECTFOLDER/LIB/SLICK/LIB/slick.jar, now i hope you guys didnt mess that up its pretty darn important that its done correctly...now we have 1 last step and that is to add the natives to lwjgl, in your libraries tab you should now see a referenced lwjgl and slick jar, if you hit the arrow next to lwjgl you will see Source Attachment, Javadoc, Native library location and Access rules, double click native library and choose "external folder" in the new popup window, then navigate to WORKSPACE FOLDER/PROJECTFOLDER/LIB/LWGJL/NATIVE/yourOSfolder, now just spam the ok button and your done =)
Sorry this first tut was kinda a cluster f$#k of garbage with limited pictures but it had to be done and the following tutorials are gonna be kick @$$ trust me bb