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
21
S
10
G
4
Posts: 106
Reputation: 4,244

Post » Mon Feb 25, 2013 4:47 am

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

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
92
S
31
G
24
Posts: 3,191
Reputation: 32,699

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
403
S
238
G
89
Posts: 24,653
Reputation: 196,143

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
21
S
10
G
4
Posts: 106
Reputation: 4,244


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 14 guests