Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (623)
Games in Android Showcase (176)
games submitted by our members
Games in WIP (676)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Choosing network arch. for a game with 32+ players  (Read 1570 times)
0 Members and 1 Guest are viewing this topic.
Offline moogie

JGO Ninja

Medals: 16
Projects: 6
Exp: 10 years

Java games rock!

« Posted 2004-06-24 05:45:49 »

I am currently thinking about cloning (and extending) "Anaconda" which is a in-game of Time Splitters 2 for the Game cube. It is basically a snake game.

It is to be network multiplayer, i will be using java3d and will be able to have more than one player per computer.

One of my main desired features is to allow many concurrent players. e.g. 32+

I am a little unsure as to what networking strategy i should aim to use.... Currently i can think of two strategies:

1. Asynchronous.

Allowing each client to potentially send information any time and the ability to queue up some information.

2. Discrete time steps.

Meaning a server waits for a specified time collecting any information recieved from the clients and then updating the world and sending back information to the clients. If a client does not manage to send any information to the server in the specified time step, the information is ignored by the server.

I believe the second method will be easier to implement however it does mean the clients with high latency will be severely penalized...

The Asynchonous method will could allow users of realatively high latency to play however i will need to handle the bunching of information messages that could occur.

I was going to use a UDP boardcast for the communication between the clients thinking that this should reduce the network traffic, however it is come to my attention that such broadcasts are not propergated though the internet. Meaning that i will have to use many UDP 'connections' Does anyone have any idea at the performance issues realated with many udp connections?

Another potential problem is the fact that each computer may have 1-4 players at the actual terminal. I was hoping to make each game instance running on the computer to be independant however this may cause problems when finding games to connect to. What methodology should i use to resolve this?


N Klaebe

Java4k RIP 2014
Offline kevglass

« JGO Spiffy Duke »

Medals: 272
Projects: 25
Exp: 18 years

Coder, Trainee Pixel Artist, Game Reviewer

« Reply #1 - Posted 2004-06-24 06:12:31 »

Snake is going to be really difficult in terms of networking, even the smallest lag will make it unplaybale.

Infact, the infamous UDP vs TCP debate in this forum actually started around this area. Smiley


Offline moogie

JGO Ninja

Medals: 16
Projects: 6
Exp: 10 years

Java games rock!

« Reply #2 - Posted 2004-06-24 06:30:56 »

Yeah, i understand that. however i will be probably sacrficing game speed and increasing tail size growth to compensate.

At the moment i am thinking for aiming for a 100-150ms input refresh rate. And thus network message rate.

The game update rate will be independant to the input refresh rate. Thus hiding the poor responce to a degree.

Java4k RIP 2014
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Herkules

Senior Devvie

Friendly fire isn't friendly!

« Reply #3 - Posted 2004-06-24 07:14:17 »

snake as a turn-based game ..... nice idea Smiley

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline moogie

JGO Ninja

Medals: 16
Projects: 6
Exp: 10 years

Java games rock!

« Reply #4 - Posted 2004-06-25 04:19:22 »

lol, it wont be that bad.... i hope! Tongue

To keep things simple i will probably limit the game to a LAN environment to begin with and usd UDP multicast.

Once i have the game working for the LAN i will go about changing the networking to allow online play.

Java4k RIP 2014
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

BurntPizza (4 views)
2015-10-07 17:15:53

BurntPizza (23 views)
2015-10-07 02:11:23

KaiHH (23 views)
2015-10-06 20:22:20

KaiHH (11 views)
2015-10-06 19:41:59

BurntPizza (25 views)
2015-10-06 19:04:48

basil_ (44 views)
2015-09-30 17:04:40

shadowstryker (22 views)
2015-09-29 15:55:06

TheSpaceHedgehog (28 views)
2015-09-29 01:58:48

GamerC4 (54 views)
2015-09-24 21:10:38

GamerC4 (71 views)
2015-09-24 21:09:48
Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11

Rendering resources
by Roquen
2015-08-17 12:42:29

Rendering resources
by Roquen
2015-08-17 09:36:56

Rendering resources
by Roquen
2015-08-13 07:40:51

Networking Resources
by Roquen
2015-08-13 07:40:43

List of Learning Resources
by gouessej
2015-07-09 11:29:36 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!