On Nov 27, 2007 9:46 PM, rogererens <[EMAIL PROTECTED]> wrote:

>
> Is it possible to use pyglet to create a game running on two
> computers? I'd like for example a simple game like Pong that my
> children could play against each other, each on a different machine.
>

It's not trivial -- pyglet doesn't provide any particular network support,
but I've written some experimental programs (including networked Pong!)
using the Python socket module that work fine.  You can choose to either:

* Use non-blocking I/O within the main event loop
* Call pyglet's dispatch_events functions from a network library's event
loop (e.g. Twisted)
* Put the network loop in a separate thread.

Your (networking) problems won't really be pyglet-specific -- there was a
very recent thread on the pygame-users that might be of interest to you.

Alex.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to