Java Games library?

I am new to Java gaming enviroment, so any pointer would be helpfull. Below I describe what I’ve in mind.

At the moment I am thinking to build a simple 2D racing games (just view from the top), but it must have additional features such as it can support multiplayer games. The idea is that 2 clients on 2 different computers can play on the same race track.

What I’ve in mind is bulding them using Java Swing and draw the track + the car (obviouslly from images) and add manually the collusion detection (using if statement). For the network part, I am planning to send the information (regarding the X,Y coordinates of the car) to the server, and the server broadcast it (perhaps using Java RMI/CORBRA).

I haven’t look at the existing java library, I was wondering whether lookiing at the existing java code library would be much better in my case?
If yes, then can you pointing out which library should I look?

Stay well away from RMI and CORBA for any kind of realtime application.

Cas :slight_smile:

+1.

Also stay away from Swing andwhat you normally think of as AWT unless your performance requirements are very minimal.

For a 2D game you can use AWT active rendering. See this article:
http://java.sun.com/docs/books/tutorial/extra/fullscreen/

Or you can do 2D through 3D using OGL. FOr OGL you use either LWJGL or JOGL.

You will also want to do controller discovery and polled input. LWJGL has its own built in support for this, JOGL is built to work with an external library such as JInput. For audio again LWJGL has its own or you can use JOAL with JOGL.

Games are not built anyting like Swing apps. If thats your expereicne you have a lot of re-learning to do.

Actually Jeff, LWJGL’s Input package is built on top of JInput now :wink: Neat or what?

Cas :slight_smile:

cool 8)