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:
- Rolling my own is not a problem, but if there is a decent third-party API available I would like to look into it.
- Which Java API do I use for Graphics / Sound?
- I am very versed in Swing already, but from my experience it is not the best way to go for a game. I could be proven wrong on that.
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.