r/javahelp • • Dec 11 '20

Questions About Making Games in Java

Hi everyone,

I would like to learn how to make games with Java. However, I don't know where to start. I have some prior experience with JavaFX and Java Swing so I think that is good. My main question is: What library do I use, and where can I find good information/tutorials/docs about that library?

Thanks

16 Upvotes

11 comments sorted by

View all comments

7

u/LiteratureStriking Dec 11 '20 edited Dec 11 '20

JavaFX and Swing aren't the best for creating games, they are best for creating user interfaces. Not to say you can't create simple games using them...

A better way is to use a library meant for creating games. For example, LWJGL.

4

u/whizvox Graduate and Tutor Dec 11 '20

I must point out to the OP that LWJGL is not a game engine, it's a wrapper for OpenGL, OpenAL, and some other commonly-used C libraries. However, it can be used to create a game engine.