Based on some discussion re: simple pygame networking, I've whacked together some code. Basically, it allows the server and clients to send marshalable python objects (lists, dicts, numbers, strings etc) between each other. Only documentation is the tests at the moment.
The code assumes a dedicated piece of (headless) server code is used as the game server, not a game instance itself. This is why the server does not do anything to integrate with pygame, it all just twisted code. http://pygnet.googlecode.com/svn/trunk/ It's intentionally minimal, so that the programmer can hook it up to their own event systems or whatever. I'm a bit worried the client api feels bit clunky... happy for comments on that :-) http://pygnet.googlecode.com/svn/trunk/tests/client.py So... could this thing become suitable for building multiplayer pygames? -- :: Simon Wittber :: http://www.linkedin.com/in/simonwittber :: phone: +61.4.0135.0685 :: jabber/msn: [EMAIL PROTECTED]
