Export As HTML5 Code

Get help using Construct 2

Post » Mon Mar 04, 2013 8:17 am

Hi guys,
This might be a stupid question. I just need to know if it is possible to export game as HTML5 code from Construct 2. I need it to show my teacher, as he wants to see the actual hard code of the game.

Thanks in advance!
B
2
Posts: 1
Reputation: 252

Post » Mon Mar 04, 2013 8:52 am

@floydbbry
Not a stupid question!

If your teacher wants to see the actual hard code of the game, it's the JavaScript he'll need to see, not HTML. To get it, export your project to an HTML5 website, leaving 'Minify script' turned off. Then show your teacher the c2runtime.js file in the export folder.

I hope he can make sense of it!
B
105
S
20
G
12
Posts: 549
Reputation: 20,320

Post » Mon Mar 04, 2013 4:24 pm

I'm with Velojet, the code really isn't straightforward. it's filled

preparation code,
canvas determination,
layer and event handling code
plugin code
then the layers and event sheets

it's nothing I would recognize as standard game coding. I think the real question is what is he expecting from you. just game code or code you wrote?
B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834


Return to How do I....?

Who is online

Users browsing this forum: Scofano, Yahoo [Bot] and 18 guests