HTML5 Game to EXE

Show us your completed creations made in Construct 2

Post » Tue Feb 28, 2012 5:38 pm

Hello,
just for curiosity I've realize in Visual Studio a litte wrapper for the HTML5 game produced by Construct 2.

It's a single .EXE file: launch it and the game starts.
It's a wrapper, so it contains a Construct2 game (you have to move a cat jumping to evitate some obstacles) and the wrapper that loads the game inside a window (using the Internet Explorer engine).

If you want to try it and leave me some impression, I thank you all.

It's downloadable here: http://www.progettistart.it/Construct2%20-%20Sample%20game%20html5%20to%20EXE.zip

Bye,
Steven

stevenworks2012-02-28 17:45:42
B
16
S
2
G
4
Posts: 32
Reputation: 1,759

Post » Tue Feb 28, 2012 6:50 pm

Great! Thanks for this .

How does it work? Does it still use the web browser?
B
27
S
10
G
7
Posts: 740
Reputation: 7,230

Post » Tue Feb 28, 2012 6:52 pm

In my machine an error occurred, and apparently was because my ie does not support html5 (maybe 'cause this outdated, Since I do not use ie) :Pgillenew2012-02-28 18:53:26
B
72
S
9
G
5
Posts: 205
Reputation: 12,152

Post » Tue Feb 28, 2012 8:19 pm

That's amazing! o_o HOW ?!
B
15
S
1
G
3
Posts: 36
Reputation: 3,420

Post » Wed Feb 29, 2012 7:04 am

Hi all,
there is'n any magic or extraordinary code behind the EXE


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
B
16
S
2
G
4
Posts: 32
Reputation: 1,759

Post » Wed Feb 29, 2012 11:17 am

This will require the user installs IE9 before it works, and only about 10% of people have it installed at the moment, and also means the games can never work on XP since you can't get IE9 there. It's something I looked in to before but I thought the limitations made it impractical for real distribution.
Scirra Founder
B
205
S
134
G
43
Posts: 17,478
Reputation: 112,193

Post » Wed Feb 29, 2012 11:27 am

I'm also a bit curious, for Visual Studio, will it only use IE? Or can it use other browsers like Firefox or Chrome? I wonder if another programming software can do the same thing but not limited to IE.
B
9
S
3
G
8
Posts: 203
Reputation: 4,120

Post » Wed Feb 29, 2012 11:49 am

[QUOTE=TheJanMan] I'm also a bit curious, for Visual Studio, will it only use IE? Or can it use other browsers like Firefox or Chrome? I wonder if another programming software can do the same thing but not limited to IE.[/QUOTE]

You can with visual studio, you just have to import a webkit/gecko implementation (usually a dll).
B
25
S
6
G
6
Posts: 502
Reputation: 7,770

Post » Wed Feb 29, 2012 12:28 pm

[QUOTE=Ashley] This will require the user installs IE9 before it works, and only about 10% of people have it installed at the moment, and also means the games can never work on XP since you can't get IE9 there. It's something I looked in to before but I thought the limitations made it impractical for real distribution.[/QUOTE]

Are you guys working into a solution to export the projects to .exe ? Or is the Construct2 entirelly aimed to HTML5 development and will therefore not aim the creation of Aplications for Desktop (.exe and stuff)? Sorry to ask, I believe you already had to answer this a thousand times... ><
B
15
S
1
G
3
Posts: 36
Reputation: 3,420

Post » Wed Feb 29, 2012 12:40 pm

@LemonDROP we're very much aware of the answer for an EXE exporter but you know, if there's a little workaround, people would want to look at it and see if it works :P

From the screenshot in the first post, although there's tons of limitations, it somehow kinda works. So I guess people who wants the EXE exporter would want to try that.

EDIT: Sorry, read your post the wrong way, C2 currently focuses on HTML5, there is a possibility that EXE will come next but we can't tell as of now since Ashley hasn't really completed all features of C2.TheJanMan2012-02-29 12:43:44
B
9
S
3
G
8
Posts: 203
Reputation: 4,120

Next

Return to Completed Creations

Who is online

Users browsing this forum: No registered users and 0 guests