Getting non-obfuscated source code

Discussion and feedback on Construct 2

Post » Mon Feb 25, 2013 2:52 am

I saw this in the C2 technology blog "The javascript code to your game is minified and obfuscated with Google's Closure Compiler. This reduces the download size and makes it extremely difficult for anybody to reverse engineer your game."

Is there some way of getting source code out of C2 that isnon-minified, non-obfuscated, and non-encrypted? I could see that being a useful way to start from a game base, and then adding on other elements that aren't supported by C2.

B
20
S
10
G
4
Posts: 106
Reputation: 4,219

Post » Mon Feb 25, 2013 4:47 am

Sure. On the export dialogue box there's a checkbox to minify or not.
B
18
S
4
G
4
Posts: 68
Reputation: 3,127

Post » Mon Feb 25, 2013 11:24 am

However, the exported code is not meant to be useful or alterable. What you want to do is technically possible, but probably not worth the effort, especially when you could just write a plugin.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Mon Feb 25, 2013 2:29 pm

@sqiddster is right, the exported code even when not minified is not remotely usable. If you want to have custom javascript code use the Javascript SDK.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Mon Feb 25, 2013 11:59 pm

Yea I had a look at that unminified code and it's totally nuts. I'll read more into using the SDK. Thank all.
B
20
S
10
G
4
Posts: 106
Reputation: 4,219


Return to Construct 2 General

Who is online

Users browsing this forum: pablo7 and 10 guests