Is it easy to make games through pure java? and is it good to make a game in pure java or just use a game library?
It doesn’t matter what you use to make games. Start making games. If you see that your games just don’t have enough performance, then use Libdgx/Lwjgl.
Umm what do you suggest me to use libgdx or pure java?
Did you make ANY game before?
Umm no that’s why i am asking what should i use i have already tested all of them and i really liked pure java but i don’t really see a lot of games developed in pure java most of them are in libGDX and some lwgjl.
You don’t see a lot of games made with Java2D because people usually use it for their first few games to learn how to make games, and thus don’t release them.
Java2D is easy to use, but very limiting. You can’t do half the things OpenGL will let you (for example, shaders), and it’s speed may hinder you from rendering too many sprites or having nice particle effects.
Start with Java2D to learn the fundamentals of game development. Once you feel you’re ready, move onto libGDX/LWJGL. libGDX is much easier than LWJGL, as it abstracts most of OpenGL for you through easy-to-use classes. LWJGL is basically pure OpenGL with event handing and window utilities. If you want to use LWJGL, you’ll have to learn about OpenGL first. The Arcsynthesis tutorials with ra4king’s port of them to LWJGL will help.
Good luck!
To add onto what Screem said, I would suggest leaning about OpenGL regardless of whether you use LWJGL or libGDX. Learn how to make games with Java2D… make games with LibGDX/LWJGL.
Thank you guys by the way do you guys suggest from me to order this book?
http://www.packtpub.com/learning-libgdx-game-development/book
I’ve never read it, however the LibGDX wiki should tell you all you need to know.
Whether or not you have a good understanding of the Java language, I recommend starting off learning the basics (e.g collision detection and response, the game loop, etc.) using Swing and AWT. When you understand the basics then you can move on to OpenGL/LibGDX. I found it easier to use LibGDX after learning OpenGL, though some people would say otherwise.
Thanks guys for all your replies so i will start with java2d and after learning it i will move to libGDX so thanks guys again for you replies it helped me a lot
It’s an great book. It involves some basic stuff to make game with libGDX. Collision, box2d, main menu creating, asset dealing…
Read it and got some useful information for me. So when you will start with libGDX, buy it… You won’t regret it.
About topic:
I started with pure Java2D. Watched some tutorials, learned how everything works. Then i started with lwjgl and slick2d, but i read some articles, that slick2d is dead project. Tried to search something similar and then i found libGDX. It’s very stable and easy to understandable. So i suggest you to start with Java2D and then when you feel ready, go with libGDX.
If you’re curious, I remind you that LibGDX doesn’t hide everything from OpenGL which is used under the hood and it remains not too complicated, you can still study OpenGL later. Moreover, LibGDX has several backends, at least one of them supports Android unlike plain standard Java2D.
Hello guys i have one more question is there an good tutorial on java2d or an documentation about it?
Do this:
- Figure out how to load an image into your program. (Google)
- Figure out how to draw that image onto the screen. (Google)
Boom! You’re done.
Remember, though, that just drawing things on screen doesn’t make a game. Check out this thread on game loops: http://www.java-gaming.org/index.php?topic=24220.0
Usually the hard part is the game part, and not the technology. I know for a newby it looks right the other way round, but you’ll see that later.
You can use pure Java, and oyu can use a librbary. It depends on the sort of game you want to make. I have used 10 years pure java, lately I use LWJGL. Both work, depending on what you want to do.
I am only using JAVA
and now I am making my first game.
I found OpenGL much easier than Java2D. YMMV but that’s why I got into games programming in the first place.
Cas
I am using pure java but I don’t plan to have fancy graphics in my game, its just different screens with buttons and text boxes.