At 10:06 PM -0500 12/19/04, LMSpam at neuropop dot com wrote:
I've added two tables to the database "worldCoordinates" and "chat".
My theory is that a client reports its current location and
orientation at regular intervals (if it's changed since the last
report) and then all clients send requests at periodic intervals
asking the database who else is within +-X and +-Z away.
OK, first, I hope that by "database" and "tables" you don't actually
mean a database and tables! For a real-time game, you should have
this sort of thing all in memory, using arrays or dictionaries or
some such.
Then, I think your basic idea is sound -- except that there is no
need for the requests from the client to the server. The server
already knows where all the clients are; it should just tell them
when they need to know something (such as, somebody near them has
changed velocity).
Boy, this really would be a good topic for an article... I should
polish up NetMaze and send it in to RBD... Or perhaps someone else
will beat me to it.
Best,
- Joe
--
REAL World 2005 - The REALbasic User Conference
March 23-25, 2005, Austin, Texas
<http://www.realsoftware.com/realworld>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|