This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Game Development and the fly likes Efficient network communication in ORPG Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Game Development
Bookmark "Efficient network communication in ORPG" Watch "Efficient network communication in ORPG" New topic
Author

Efficient network communication in ORPG

Chad Cook
Greenhorn

Joined: Dec 02, 2004
Posts: 29
I'm currently in the design stage of a simple online RPG and I'm trying to decide the best set-up/architecture for communication between the client and the server. I plan on creating a basic 2D RPG, similar to 8-bit and 16-bit classic RPGs with a top-down, grid-based view. At a minimum, I need to communicate chatter between players (basic chat program), the current location of any other players and enemies on the screen and possible status updates about the players or enemies.

It seems really inefficient to constantly be firing off db queries from the client to the server to update and retrieve details about the game, so I thought about setting up TCP or similar communication between the server and the client to transfer the data needed and let the server handle any db queries and so-forth.

This is my first foray into anything of this nature, so any performance improvements or suggestions would be greatly appreciated. Also, if anyone knows of any resources online which can help and talk to the communication aspect of a project like this would also be very helpful.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Efficient network communication in ORPG
 
Similar Threads
Supplied interface as business interface?
DB app: complex text structure
Who's using threads?
To create online chess game
Building Requirements for Games