I am new to lwjgl, and java. I am fluent in c# and game development for around 4 years now.
I have some questions though:
1. I want to use lwjgl and slick-util libraries, unless I need the full slick for some questions I have later on.
Bitmap fonts. I know about ttf fonts, but how can I load a .png and turn it into a font that can be used to draw strings?
2. I want to use spritesheets, how can I draw only a section of a texture, I think I have seen something like this with openGL in the past.
3. How can I load textures and other things such as xml and the bitmap font (above) from outside the project? When I distribute my game I want to be able to just distribute a .zip file with everything in it, the lib and natives folder, the .exe or .jar, and a "resources: folder that will have all the game data in it like graphics, so players can make their own graphics if they want to.
4. How can I load xml files? Does java have build in xml classes like c# or do I use a library?
5. I want to make a TextureRenderer static class with a draw method that will take these parameters:
public static void draw(Texture texture, int x, int y, Rectangle sourcerectangle, float rotation, Color color)
The sourcerectangle will be a rectangle of what part of the texture to draw, the rotation is oobviously rotation, and the color will be a class for drawing an image in a color.
Is this possible? I am coming from xna, so I'm not used to opengl so this would be a lot easier for me.
6. Actually installing eclipse and java. I just downloaded the jdk 1.6 version from the website and put the variable to the bin folder in the "PATH" system variable, I have windows 7. I installed the eclipse version that had the most downloads, it was this one:
http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/indigosr2 and I installed the 64 bit one. Is that the right one?
I downloaded lwjgl and the slick-util zip folders.
This is how I make a new project, is this right?
Make a new folder in documents folder on my computer called "My Java Game"
Open eclipse and set workspace to that folder.
Make a new java project.
Go to the folder and make a folder called "lib"
Where i downloaded lwjgl, go to lwjgl-2.8.4\lwjgl-2.8.4\jar folder and put jinput.jar, lwjgl.jar and lwjgl-util.jar into the lib folder.
Same as above but for the slick-util folder i put jogg-0.0.7.jar, jorbis-0.0.15.jar slick-util.jar into the lib folder in "My Java Game" folder. I noticed the slick-util folder also has a lwjgl.jar in it, do I put that in there as well (it will replace the other one from when I downloaded lwjgl from lwjgl.org) They are different sizes, so they are obviously different .jars.
Then when i downloaded lwjgl go into the natives folder and copy all the windows dlls into my natives folder in my bin folder. What do I do with all the files from the other OS's in lwjgl?
After all that I open up eclipse again and in the workspace in the new java project i right click and hit properties and add the slick-util and lwjgl and lwjgl-util and jinput .jars to the libraries thing.
7. Should I use the java 7 or java 6? How do I choose which one the game will need? What is the difference between the jdk and jre?
8. How would I do a 2d camera?
9. I know this is an opengl question, but what do glMatrixMode and glShadeModel do?
10. About the lib folder and natives folder, is it possible to have one download for all OS's and have separate folders for windows/linux/macosx/solaris and in code or something use a different one depending on which OS the current system is?
Yea, thats a lot to read and a lot of questions, if anyone knows the answers to any of them it would help out a lot
