Hi all,
there is'n any magic or extraordinary code behind the EXE
<img src="smileys/smiley2.gif" border="0" align="middle" />
In Visual Studio I have simply created a window filled with a "Web Browser" component. This is a standard component in the Visual Studio tools and it's just integrated on any version of Windows OS (so you have no need to download / install something).
The "Web Browser" component is an interface of Internet Explorer, so it's functionality depends from the installed version of Internet Explorer. For this reason, if you have IE 8, the EXE / the game will not work because version 8 doesn't support HTML5.
The EXE I have distributed is a ZIP file containing:
- the game files, exported from Construct with HTML5 exporter
- the EXE I've created with Visual Studio that execute the game (it loads the index.html file)
When you click the distributed EXE, all files are extracted in the temporary folder and automatically the "EXE launcher" is executed to start the game.
It's just an experiment to see if it's possible to wrap a Construct HTML5 game for distributing it in EXE format. I've seen in other posts that someone wanted for it. I think actually this is the only way to "convert" an HTML5 game to EXE. A real conversion without a web component I don't know if it's possible or maybe a few complex, considering that the HTML5 guide lines are not definitive.
Thanx,
Steven