I know this is a somewhat common subject, but the information is outdated quickly. I want to stay with the times on the topic...
Anyway, I am looking into creating a 2D game in Java that is able to work cross-platform. As many others have said on Stack, much of the example code and information about Java graphics APIs is outdated to no end.
Here's the deal:
Two of the more interesting game libraries for making 2D games in Java are the Golden T Game Engine and the Lightweight Java Game Library (LWJGL).
I would recommend taking a look at LWJGL first, as there have been several examples of rather successful cross-platform games that were made with it, including most, if not all, of the games released by PuppyGame Studios.
For graphics, you might consider Qt Jambi. It gives Qt-like API to Java, including graphics view(arbitrary 2D drawing, high level API) and its OpenGL classes (OpenGL bindings to Qt, nothing special here). It also contains Phonon, multimedia architecture that can be used to play audio and video.
The minus is that it is just bindings to Qt, so it requires native libraries in order to work.
(Yes sorry I’m part of that project)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With