Hi,

I've published NativeClient port of Wesnoth 1.9.9 here:
https://chrome.google.com/webstore/detail/pobnonecghmlpppkkjpdiiblmakhhldb

NativeClient is a technology that allows running native code securely
inside a browser. At the moment it is available in Chromium, starting
with M15 (current stable).

This port works by on-demand downloading the game data and caching it
in an HTML5 local filesystem. A custom version of SDL library is used
to do video/audio/input to and from the browser. We use nacl-mounts
library to implement POSIX file i/o on top of HTML5 file i/o and
xmlHttpRequest interfaces. As a result, changes to Wesnoth codebase
are minimal.

http://code.google.com/p/naclports/source/browse/#svn%2Ftrunk%2Fsrc%2Flibraries%2Fnacl-mounts

At the moment the game lacks some features of the desktop variant. It
runs in a fixed resolution (no fullscreen), downloaded content and
network play are not supported. This is all doable with a reasonable
amount of work. Network support would require adding websocket support
to the Wesnoth server, in addition to raw tcp (or is it udp?).

I'm looking to contribute the changes to the Wesnoth upstream. The
diff is pretty small and very unintrusive: under 50 lines of changes
in existing files (mostly SCons*), and under 700 lines in new files,
excluding custom build/pack/deploy scripts. You can get an idea of
what the changes look like here (the link also contains lots of
autogenerated code):
https://raw.github.com/eugenis/wesnoth-nacl-build/master/wesnoth-1.9.9-nacl.patch

Would you like to have this in the main Wesnoth repo?

_______________________________________________
Wesnoth-dev mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-dev

Reply via email to