Safe Code

For developers using the Construct 2 Javascript SDK

Post » Fri Mar 30, 2012 12:15 am

I develope a HTML5 web based game. Ive written a custom plugin for it. It uses an external Javascript file which has to be included in the server install.

I export the game and upload to my server. Is my plugin code etc.. safe or can it esaily by downloaded, decompiled etc..

Can I somehow obfuscrate the external js file I use in the plugin
B
7
S
1
Posts: 65
Reputation: 821

Post » Fri Mar 30, 2012 2:42 pm

Your plugin code is safe as long as the user selects 'Minify script' on export. This compresses and obfuscates the code which should make it very difficult to reverse engineer.

External scripts are not minified. You can minify them yourself if you like with Google Closure Compiler.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Sun Apr 08, 2012 8:13 pm

if i put a external javascript file in a plugin folder (used in the game) will the script be minified and included in the exported html5 files automatically
B
7
S
1
Posts: 65
Reputation: 821

Post » Sun Apr 08, 2012 8:20 pm

No, it won't. You can make Construct 2 copy it to the export directory by adding it as a 'dependency' in plugin settings, but it won't be minified.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Sun Apr 08, 2012 10:39 pm

is there a tutorial for that?
B
7
S
1
Posts: 65
Reputation: 821

Post » Sun Apr 08, 2012 11:21 pm

@rafhelp

See edittime.js in official facebook plugin
B
97
S
22
G
178
Posts: 4,120
Reputation: 104,047


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests