Hello, I've written a prototype implementation of Crawl playable online in the browser. This is independent of the recent discussions (I should have checked c-r-d more often...); I just thought it would be an interesting thing to try. The design is quite different and by far not as flexible -- I agree that the design discussed here will be better in the long term. But on the upside, it is (as far as my tests go) already completely playable ;) Maybe it will at least be able serve as a prototype to try some concepts in.
The code reuses quite a bit of the normal tiles code. The main part of the new code is in tileweb.cc, which replaces tilesdl.cc to send tile data (and the text area contents) to the client. This is simply done by writing javascript to stdout, where a small python server reads the data and sends it to the client via a websocket. I don't have a server to install it on, so it currently can't be tested online; but the code is on gitorious at https://gitorious.org/~fdiebold/crawl/fdiebolds-crawl in the webtiles branch, if anyone wants to test it locally (or set up a server). To build the server (only on unix), use "make WEBTILES=y webserver all". The python part requires the tornado web framework (tornadoweb.org), which can be installed with pip or easy_install. Then "python webserver/server.py" should start the server, listening on port 8080 (it will start crawl when a client connects). The client javascript requires websockets, which are currently only enabled in newer Chrome versions. Firefox 4 supports them too, but they are disabled because of security concerns (they can be enabled with the setting network.websocket.override-security-block in about:config). There are of course a few bugs and missing features, but I think it is already quite playable. Any comments would be appreciated; if it is requested, I could also write a bit more about the code. Cheers, Florian Diebold ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ Crawl-ref-discuss mailing list Crawl-ref-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/crawl-ref-discuss