Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I am currently working on a Java multiplayer game. The game itself (single player) already works perfectly fine and so does the chat. The only thing that is really missing is the multiplayer part. Sadly I am absolutely clueless on where to start with that. I roughly know that I will have to work with packages, and I also know many things about streaming etc (chat is already working). Oh and it should - according to this article - be a UDP server. My problem is that I can't find any resources on how to do this. A tutorial (book or website) would be perfect, alternatively a good example of an open source client/server (in Java of course) would be fine as well. If you feel like doing something helpful I'd also really appreciate someone "privately" teaching me via email or some chat program :)

Thank you!

share|improve this question
    
1  
UDP vs. TCP: whether you use one, the other or both depends entirely on the game; there is no blanket statement possible. –  Patrick Hughes May 3 '12 at 19:34
add comment

2 Answers

You may also consider looking at the RedDwarf project that has been a community fork of Project Darkstar. The latter was a Research Project at Sun Microsystems and discontinued after Oracle took it over.

It was developed to be a horizontably scalable middleware and seems to have been very popular. The source of the RedDwarf Server fork is available on Sourceforge. That gave me an idea of how the serverside of a game can be realized. The documentation sometimes lacks information about the intentions of some classes but it gave me a basic understanding.

share|improve this answer
add comment

Take a look at Netty - it's a very good high performance networking library that is well suited for game development. It has some very good documentation and tutorials.

See also:

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.