Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  race game network help  (Read 1511 times)
0 Members and 2 Guests are viewing this topic.
Offline arun

JGO n00b
*

Posts: 6



« on: 2006-07-19 10:20:31 »

hi guys
           i want to develope a new multiplayer racing game in lan. which type of protocol
is best.
                                            thanks
Offline purpleguitar

Full Member
**

Posts: 136



« Reply #1 on: 2006-07-20 08:01:26 »

What type of protocol?  Network!  *ba-dum dum*

There seem to be a few discussions on the board regarding the merits of TCP vs UDP (which are protocols, not types of protocols).  I recommend that you search the forum and look at the networking forum, build up your understanding a bit, and then post a more pointed question.  (E.g. if you know what kind of latency you need, how many players, is it LAN-only or should it scale up to Internet)

Offline Jeff

JGO Kernel
*****

Posts: 3535


Got any cats?


« Reply #2 on: 2006-07-21 00:11:49 »

On a  LAN you might as well do everything TCP/IP.

OR so it all UDP multicast. 

The forner is easy and you dont have to wrry about internet TCPIP jam issues.

But the latter means you only have to send any packet ocne as opposed to N times where N is the number of players.

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Games published by our own members! Go get 'em!
Offline Kova

JGO Ninja
***

Posts: 628



« Reply #3 on: 2006-07-23 07:01:06 »

I would suggest TCP as it's packets arrive in order. Since it's on lan you don't have to worry about one packet having trouble to pass and delaying all other packets. Either way you shuold learn both protocols, try implemening both Smiley
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.102 seconds with 19 queries.