Could C2 output more "dev friendly" HTML5 projects?

Discussion and feedback on Construct 2

Post » Thu May 29, 2014 9:25 pm

Hi there,

@Ashley I've had some opportunities to make games for clients using C2, but some of these clients have wanted the projects to have CSS and other files exposed in such a way that they could modify the code directly.

I'm not a coder, but I know that a typical c2 project makes a c2runtime.js file which has ALLLLL the code bundled in it which is obviously not really the most professional way to handle it.

Even breaking the code down by layout or some other more "chunky" way could perhaps make C2 a tool that lets non coders make projects that product post-c2 developers to work with / change.

Thanks,
Caleb
B
59
S
9
G
1
Posts: 946
Reputation: 6,561

Post » Thu May 29, 2014 9:33 pm

The solution is to use the Javascript SDK. Even if the export was easier to modify, it would still involve the whole C2 engine and require C2 knowledge to work with, and basically be identical to a post-export Javascript SDK. It's better just to write a plugin and modify the capx. In fact, sending the capx as the "source" instead of the exported file is logical, since they can then make arbitrary modifications easily from C2 and re-export if they wish.

The export is actually deliberately difficult to work with because many users are very concerned about reverse engineering. As far as I am aware there have been no cases of exported projects usefully reverse-engineered to Construct 2 projects, so I think that works pretty well and is an important feature.
Scirra Founder
B
399
S
236
G
89
Posts: 24,543
Reputation: 195,430

Post » Fri May 30, 2014 12:06 am

@Ashley thanks for that insight! I forgot that you can save as a project which does break things down nicely. I'm going to have my partner (the real coder) take a look at it and see what sense he can make of it combined with your suggestions.

Thanks!
Caleb
B
59
S
9
G
1
Posts: 946
Reputation: 6,561


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 12 guests