Visualize the html5 code behind

0 favourites
  • 10 posts
From the Asset Store
5 levels with simple coding Source-code (.c3p) + HTML5 Exported
  • Im trying to visualize the html5 code that this program creates -for what i understand xD-

    I cant find a way though, when i open it with a text program, it just shows the computer language it seems (tons of weird symbols)

    So...yeah, how can i see the code created? I think it might be useful so some people that dont use this program can help me too.

    -remember im a complete newbie at programming xD-

  • The code is in Javascript. It's also from what I can tell not orginized into game structures api. The result of the exported javascript code seems to be more like a direct minimalistic game. With a event sheet handler and layout handling.

    Afterlooking at it. I find it's not worth it.

    Anyways. To see the code. Export to HTML or CocoonJS. It's the runtime.js file you are looking for.

  • Ooh, okay, i found it, thank you!

    -now i just need someone to reply my other question...xD-

  • Step by step:

    • Download an Editor you prefer i recommend sublime text ore notepad++
    • Export it with Html 5 (do not select minify script !!!!!!!!!)
    • In the Export folder is a runtime.js open that with your editor
    • This is your ~10 000 rows long code but well formated.
    • Show this to someone who want help you but not got C2
    • Watch him crying
    • Ask your questions here in the forum

    Sry but with C2 problems only C2 "coder" can help you. It?s because C2 is Code free.

  • Whoah...i guess it wasnt a good idea...xD

    Then i will have to wait for someone to reply my question, i guess...already almost a day, 0 replies...i dont know when i can bump the thread, but i guess i shoudlnt ask that here xD

    thank you for the help anyways! :P

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Even unobfuscated, Construct's code is dynamically generated. It is not designed to be human readable. Nevertheless, it is just Javascript and if you know JS, you shouldn't be having problems reading the code. But remember - there's a lot of code, as the engine is very advanced.

  • ... -remember im a complete newbie at programming xD-

    Zignide

    Look, if you're a complete newbie, looking at the JavaScript code created is going to be of no help to you whatsoever. It'll just make your head spin trying to make sense of it.

    What's the point? It won't make you a better Constructor. You'd be much much better off using your time in getting practice at using C2 to make games.

    Really.

  • Construct 2 does not generate human-readable Javascript code after export. If you want to use Javascript in Construct 2, use the Javascript Plugin SDK.

  • Okay, then i just hope someone will reply the question i had...xD

    Thank you all for the help! :)

  • Well your post consisted of two questions.

    1. where is the code

    runtime.js after exporting.

    2. Read the code

    Here seems to be the the answer that's not being express well. The runtime.js is in pure English javascript code. It's as close to human visualization and readability as it can get. It's not in machine language, but in the language that some one with an editor would type out.

    The difference being is that C2 write's the code in an effecient form that isn't meant to be read by humans. It's still the same language, but it's as note and abbreviated form. In a pattern that the browser can interpret.

    That is the code created. There isn't anything else except for the source of exporter to js itself. Which is closed source.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)