EXE wrapper for HTML5 - alpha test

Forum Home Forum Home > Construct 2 General > Construct 2 general
 Post Reply Post Reply Page  123 9>
Author

Scirra Developer
78,417 Rep
Post Options Post Options   Quote Ashley Quote  Post ReplyReply Direct Link To This Post Topic: EXE wrapper for HTML5 - alpha test
    Posted: 02 Mar 2012 at 12:39pm
EDIT: check out this newer thread for updates: http://www.scirra.com/forum/space-blaster-for-windows-demo_topic53658.html

Hi all,

Exporting an EXE still seems to be a popular feature request. Most EXE-around-HTML5 wrappers I've tried have all been too slow or had other shortcomings, but Awesomium just released 1.7 with WebGL support. I've tried it, and it seems fast enough for smooth gaming on the desktop. Since it supports WebGL, it should be comparable in performance to a native runtime, and you still get to use all your favourite third-party plugins and behaviors.

Awesomium is based on the open-source Chromium (the Google Chrome browser engine, which IMO is the best). You need a license to use Awesomium, but only if you made over $100K in revenue in one year, so it should be free for most indie devs (more info on their site).

I've made a test demo - note the Awesomium 1.7 release itself is currently alpha, and this implementation of the wrapper is also alpha, so please think of it as a proof of concept only!

The test demo just loads Space Blaster live from the web. Obviously when finished it will embed all your project files inside the EXE so no connection is necessary - this is just a simple test of the wrapper technology. Note the zip is 14mb, which is quite a large file size overhead compared to the size of the game, because it includes the entire Chrome browser engine. It shouldn't be too much bother since most have broadband these days.

I noticed a few sound glitches too BTW, but they cleared up after a while. Having sounds embedded in the EXE will probably help fix that, I hope.

Here's the test:

http://www.scirra.com/labs/c2-exewrap.zip

Give it a test and see how it runs for you.

Please note: we may make this a licensed-only feature.

Edited by Ashley - 22 Jun 2012 at 11:52am
Back to Top
2,289 Rep
Post Options Post Options   Quote Ubivis Quote  Post ReplyReply Direct Link To This Post Posted: 02 Mar 2012 at 1:05pm
started with an d9d3 dll missing error (I'm on my work PC at the moment) and after closing windows XP came up with an error, that the program is not responding. But the Game runs flawless :)
Back to Top

Scirra Developer
78,417 Rep
Post Options Post Options   Quote Ashley Quote  Post ReplyReply Direct Link To This Post Posted: 02 Mar 2012 at 1:09pm
@Ubivis, what was the exact name of the DLL? We might be able to bundle it...
Back to Top
5,000 Rep
Post Options Post Options   Quote Xavier Quote  Post ReplyReply Direct Link To This Post Posted: 02 Mar 2012 at 1:09pm
Runs good on my desktop with Win7 64. Also tried with my netbook (Win XP) and it runs good with some slowdows of course.

In the netbook with Win XP it gives me an error on startup but then continues to load fine. The error says that it cannot find the d3dx9_43.dll file.

Also another minor thing I noticed it's that if you hit the alt key the game pauses because you opened the browser's menu.
Back to Top
8,329 Rep
Post Options Post Options   Quote Przemek32767 Quote  Post ReplyReply Direct Link To This Post Posted: 02 Mar 2012 at 1:11pm
I heard about Awesonium. This looks really interesting.

I gave it a quick test. It works fine for me, but the framerate is not as smooth as on Google Chrome (I have a 64 bit Windows 7 laptop). Nonetheless, it looks promising.

Edited by Przemek32767 - 02 Mar 2012 at 1:12pm
Back to Top
2,289 Rep
Post Options Post Options   Quote Ubivis Quote  Post ReplyReply Direct Link To This Post Posted: 02 Mar 2012 at 1:11pm
d3dx9_43.dll

as I said... this is a computer at work, no fresh DirectX9 Installed :)
Back to Top
2,377 Rep
Post Options Post Options   Quote buddy40 Quote  Post ReplyReply Direct Link To This Post Posted: 02 Mar 2012 at 1:16pm
Same errors here, but runs well. Would get major use of something like this myself.
Back to Top
2,319 Rep
Post Options Post Options   Quote zoorocket Quote  Post ReplyReply Direct Link To This Post Posted: 02 Mar 2012 at 1:27pm
This would be a great tool. Plus easier to monetize your creations to the masses.
Back to Top
4,692 Rep
Post Options Post Options   Quote HotGod Quote  Post ReplyReply Direct Link To This Post Posted: 02 Mar 2012 at 1:29pm
I run on XP. No errors on startup. On exit I got a "Data Execution Prevention error" + "C2Wrap.exe has encountered a problem and needs to close".

I guess these are minor issue. The game run smoothly and it would have been cool to see a full screen (Alt+Enter) is native resolution.

Are they planning on making this available to Mac's too?
Back to Top
4,514 Rep
Post Options Post Options   Quote GenkiGenga Quote  Post ReplyReply Direct Link To This Post Posted: 02 Mar 2012 at 1:34pm
No errors here - it worked brilliantly! No noticable slow down. (That demo has really come along by the way!)

It seems too good to be true - Is the exe wrapper really here already?!

You move too fast!

*W7-64b

Edited by GenkiGenga - 02 Mar 2012 at 1:43pm
Back to Top
 Post Reply Post Reply Page  123 9>

Forum Jump Forum Permissions View Drop Down