Earlier this week I asked how this could be accomplished but since then I have figured it out on my own reading various tutorials and would like to share what I learned with others.
I chose the basic slick game tutorial
found on the wiki written by Spiegel to make multiplayer capable with JGN.
My goal was to understand how to use JGN and Slick together to create a multiplayer environment. I hope this is helpful to anyone else planning to use JGN with Slick but have no clue how.
I figured out how to get this to work but I am in no way an expert on JGN or Slick and would therefore appreciate any comments on improving my implementation.
My entire Eclipse project is provided which contains necessary source code, jar files, and image files to get the game running.
The necessary jar files are located in "NetworkedSlickBasicGame/lib/" and the image files are located in "NetworkedSlickBasicGame/data/".
To start the game first run "SlickBasicGameServer" and then after it loads run "SlickBasicGameClient" for each player.
One issue I didn't get around to fixing is that when a client exits, the corresponding sprites on the other client's displays do not get removed from the game.
You have full rights to this code, use it however you wish.
Hope this helps!
Here is an updated link:
http://rapidshare.com/files/224898008/N ... e.zip.html