realbasic-games
[Top] [All Lists]

Re: Synchronizing Action in Frame Based Internet Game

To: cmalumphy at earthlink dot net, REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: Synchronizing Action in Frame Based Internet Game
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Sat, 31 Jul 2004 09:22:03 -0500
Cc:
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <410AEBAD dot 47481E at earthlink dot net>
At 8:45 PM -0400 7/30/04, Chris Malumphy wrote:

I have a little war game in which each player sets up the initial state
of their armies and when both are ready the computer carries out the
action with no further interaction from the players. The strategy is all
in the setup.

Sounds pretty cool.

But I would also like to enhance the game so that each player could add
additional armies in areas that he controls at various times throughout
the conflict. This however requires that the games run in synch with
each other because I can't let one player add an army in frame 37 when
the other player is already on frame 38. The rub is, I want the war to
proceed as quickly as possible. If the clients have to exchange data and
update the screen for each frame, I'm afraid that a game that should run
in a minute or two with perhaps 200 to a thousand frames may take much
much longer.

I don't think so. It sounds like the only data you have to exchange on most frames is "now on frame N, nothing unusual to report". That will be very quick.

Should I be afraid of that? If so, what is the best strategy for swiftly
keeping the game in synch. Consider that my sole experience with having
a program work over a network consists of modifying the various simple
chat programs that I've seen, so I am a newbie at attempting something
this substantial. Thanks.

No worries; the best approach is to try it, and fix the problems that you *actually* find, instead of worrying too much about things you think might be a problem.

Best,
- Joe

--
,------------------------------------------------------------------.
|    Joseph J. Strout           REAL Software, Inc.                |
|    joe at realsoftware dot com       http://www.realsoftware.com        |
`------------------------------------------------------------------'
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>