What Game engine and libraries should i use to make 2D games I only now LWJGL, libgdx and JMonkeyEngine. I dont know much about these because i done two projects without libriaries and engines(simple games).
Thanks.
What Game engine and libraries should i use to make 2D games I only now LWJGL, libgdx and JMonkeyEngine. I dont know much about these because i done two projects without libriaries and engines(simple games).
Thanks.
Hi
Please fix your spelling mistake in the title.
It depends on your objectives. The use of a Java binding for the OpenGL/OpenGL-ES API is good for pedagogical purposes, it’s helpful to understand what happens under the hood in engines and to fix bugs in them when something doesn’t work as expected but if you want to make a 2D game without spending too much time in learning OpenGL concepts, LibGDX is for you. I advise you to read what I explained here.
Edit.: You don’t have a lot of options for 2D. JMonkeyEngine is rather a 3D engine.
It really depends on what you want. JME is a 3D engine thy will take a lot of the low level work off your hands and provide you with a nice interface to interface with the code, so use it if you don’t like to code absolutely everything. However, its not really a 2D engine.
LibGDX is a great high level library, I personally love using it. It allows you to utilize OpenGL without having to write all the low level rendering code, so use it if you want to program most of your game, but are ok with not delving into the “hardcore” low level graphics. Its also mainly 2D!
LWJGL just “ports” OpenGL over so you can use it in Java since OpenGL was written with C languages in mind. If you use LWJGL, prepare to have to google a ton and work on the low level code for a while before you can start thinking about actually setting a game up. I’ve done it before, its actually fun to learn all about OpenGL and shaders, but I don’t like having to rewrite my render engine because my new game has different requirements than my old engine.
There’s also Slick2D, but its not as… (Trying not to stay a flame war) good or used much anymore. LibGDX is almost its successor, in a way. Slick2D is pretty easy to use, but I dont know if its ok for me to recommend it!
Good luck on whatever you pick!
I think i will go with libgdx, but should i use OpenGL with it? i didnt quite understand. Is there any other libriaries that i should use with libgdx?
Ah, you don’t entirely understand yet!
All the libraries I mentioned are built on top of OpenGL. OpenGL is just a library(or interface) to allow you to interface with your GPU and mess with pixels and low level stuff like that. LWJGL just allows Java users to use OpenGL, LWJGL is basically a wrapper library almost. The only purpose it serves is to convert some low level stuff over to the Java way of doing things. I’m probably explaining this really bad, but all you need to know is that all these libraries are built on OpenGL. LibGDX is a high level OpenGL library that deals with the low level stuff for you. LWJGL doesn’t, you’ll have to code all the low level stuff. It just depends on what you want.