Creating an EXE Wrapper PoC

Discussion and feedback on Construct 2

Post » Wed Sep 14, 2011 6:07 pm

First of all I'd like to point out that I don't know what I am doing.
This is really just a PoC (proof of concept).
I didn't try compiling the python to exe.

I was playing around with Python and Webkit and was ablt to render a Construct2 game as a program independent of the browser, so it looks more like a regular program.

Here's a pic:


I left the "Made with Construct" bit to show what was happening.

I used a python wrapper for webkit but your could use C++ or C#.

On a side note another way (haven't tried it yet) is just to code up a form (program screen) with an embeded browser using C# or VB.Net, which opens index.html in the same folder. You could even put an decryption routine in the program so your html files can stay encrypted on disk.

If anyone is interested here's the python code from the PoC (you also need python, pyGTK and pyWebkitGTK installed). Should work on windows or linux.

import gtk
import webkit

win = gtk.Window()
bro = webkit.WebView()
bro.open("C:\Documents and Settings\Frankie\Desktop\8bit Mage\index.html")
win.add(bro)
win.show_all()

gtk.main()

ShabbyCat2011-09-14 18:35:38
B
15
S
1
G
3
Posts: 47
Reputation: 1,912

Post » Wed Sep 14, 2011 6:57 pm

Can you give more details ?

Id like to try with a game...

Cordially,

Amarcelo
"keep calm we have giant robots!"
B
21
S
5
G
4
Posts: 94
Reputation: 3,155

Post » Wed Sep 14, 2011 7:24 pm

Very interesting! I think we'd prefer to release an EXE exporter than build this kind of functionality in, but it's a good option for those looking for extra distribution options. Do you have a list of steps for anyone else to repeat if they wanted to give it a go?
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Wed Sep 14, 2011 7:29 pm

Hey this is cool!

I wanna try this out.

Thanks for sharing.
B
18
S
8
G
7
Posts: 120
Reputation: 5,625

Post » Wed Sep 14, 2011 9:55 pm

Ashley,

Is it possible in future C2 versions one EXE exporter ? Its very interesting option too !
"keep calm we have giant robots!"
B
21
S
5
G
4
Posts: 94
Reputation: 3,155

Post » Thu Sep 15, 2011 3:54 am

[QUOTE=amarcelo] Ashley,

Is it possible in future C2 versions one EXE exporter ? Its very interesting option too ![/QUOTE]

Writing a game once in C2, then EXE game and HTML5 game can be exported. There is no doubt that EXE exporter of C2 will attract more people to buy and use C2. After EXE exporter, IPhone exporter should be a suitable next target...

B
5
S
1
G
1
Posts: 34
Reputation: 748

Post » Thu Sep 15, 2011 1:41 pm

Ashley,

Think in an EXE exporter for the future versions will be great !!!!

Cheers

Antonio
"keep calm we have giant robots!"
B
21
S
5
G
4
Posts: 94
Reputation: 3,155

Post » Thu Sep 15, 2011 1:49 pm

I've put together a C# wrapper, details can be found at this post
B
15
S
1
G
3
Posts: 47
Reputation: 1,912

Post » Thu Sep 15, 2011 10:12 pm

exe exporter sounds nice...but i still prefer the "old" construct classic to build executables appz ^^
B
159
S
38
G
11
Posts: 229
Reputation: 17,361

Post » Mon Feb 13, 2012 6:00 pm

how did you manage to build pywebkitgtk?
B
7
S
1
G
1
Posts: 37
Reputation: 1,159

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 5 guests