Hi Guy's,
The PoC I did in python ( Previous post ) but it wasn't very practical. My next attempt was to write a C2 wrapper in C# using webkit (via OpenWebkitSharp)that would let your C2 projects look and behave a bit more like exe's.
Essentially it's like having a webbrowser with no distracting controls on it to display your files on the desktop, in a way that makes it look like an ordinary application.
<img src="http://dl.dropbox.com/u/41800350/desktop_sblaster.JPG" border="0">
I tried using the inbuilt browser object in C# but it gave an error saying my browser could not render HTML5, I think it's cause I don't have IE 9 yet, so I'll need to do more testing.
To get it going you just need to unpack the zip and edit the settings.ini file (even if you are just testing the copy of Space Blaster included).
I've bundled it all up along with the source code and the HTML5 of Space Blaster as C2WebkitWrapper.zip (40 mb). All my test games worked OK but they arn't as intensive as something like Space Blaster so it was a good test. On my laptop I do get some lag here and their playing Space Blaster, but all in all the controls and sound are good. I've included a copy of space blaster in the package so you can see how it hangs together.
I've also included a Settings.ini configuration file. This let's you customize a few aspects of the Wrapper (I have to think of a better name). Like:
Name - Let's you customize what's written in the title bar.
Url - This is the location of you C2 exported game files, this can be on the local disk or on the internet. Local locations start with file:// instead of http://
Screen size: Adjusts the size of the exe's screen to suit your game.
Thoughts:
There's embedded versions of Mozilla's Gecko which I could try.
Also OpenWebkitSharp can use nightly releases of webkit that would probably run a lot quicker than the default Cairo 0.5. Also there's Awesomium (awesomium.com) that let's you embed chrome but it has a licence and it might get messy.
If I do get the embeded IE working it's not a great solution as you would have to ensure people are running something like IE 9, I'll post the results of that one as it's pretty easy to do.
In my mind the best mix would be something like webkit, C++ and GTK.
You could then compile for windows and Linux.