• Advertisement
Sign in to follow this  

java api for games

This topic is 3951 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

What is the best api for making 2d desktop games, not applets, with Java?

Share this post


Link to post
Share on other sites
Advertisement
I didn't know you could use direct x with Java.

Share this post


Link to post
Share on other sites
Well you can use DirectX if you are insane enough. (Any native API can be accessed through the Java Native Interface), however there is no good Java wrapper for DX so you'll have to write that one yourself (lots of work) and you would throw your multi platform support down the drain for no good reason at all.

a Better option for both 2D and 3D games would be JOGL which is a OpenGL wrapper with support for OpenGL 2.1 + ShaderModel4 extensions (Equivalent to D3D10 but with better platform support).

Share this post


Link to post
Share on other sites
slick is the only one I know of tailored specifically for 2D games.

I've done games using nothing more than the built in Java2D api

Share this post


Link to post
Share on other sites
There are a few old libraries floating around out there, but Slick is the cream of the crop. Kevin Glass has been working on it for a while now but only just announced the first release. It is branded as 'version 0.1', but is quite stable and feature-rich.

Java's built-in Java2D API will also get the job done, but you'd be forced to implement a great deal that Slick already has done for you. Plus, slick uses LWJGL under the hood so that rendering is done through OpenGL, audio through OpenAL, and input comes from the underlying operating system rather than Java's AWT.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement