Spent the afternoon sitting down to write a little application for the OLPC. In particular, wanted to create a multi-player Reversi game. Just a simple little program that would let 2 people connect and play the game.
To make a static model a shared application I created a SharedObject with certain shared fields (the shared state of the application) and event-handling scripts and routed them to and from the graphics primitives (3D scenegraph) such that clicking caused events to propagate to the scripts/shared objects and then the game state updates were routed to all the viewers via the shared object machinery.
Telepathy, it seems, is more like a SIP protocol (or a Game Lobby protocol) than a transmission protocol. It just arranges to have you connect via some other protocol, it doesn't give you a structured shared object model AFAICS. May want to look into the new Perspective Broker stuff to see if it can give us a reasonably scalable "native" state-sharing mechanism.
I also spent some time on Glade... it doesn't really seem to be targeted at canvas/graphics operations/interactions. I was hoping I'd be able to draw graphics and hook up events on them to get the interaction working. Guess I'll have to code everything by hand in Cairo or PyGame instead... hmm.
I don't see the equivalent of a DOM in Cairo, it seems like it only uses the RSVG library to render SVG? I'd hoped to be able to define events on the SVG groups to create application interfaces. Maybe have to embed the gecko control to get that kind of functionality... at which point we could just code web/ajax applications and be done with it.
Oh, also spent quite a while looking through PyGTK applications looking for those which might be ported. Quite a few candidates available. Not many network-aware ones, though.
Pingbacks are closed.