Sign in to follow this  
Zaris

java api for games

Recommended Posts

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this