question about html5

0 favourites
  • 5 posts
From the Asset Store
Jump on the mole rats and see how far you can go!
  • This is probably a newb question as far as web dev goes, but will there be any way to embed these games iinto a page so we can hide the html5 and keep control of it? Or will all games on the web made with html5 be open source just by rightclicking and clicking "view source"

  • Any HTML/CSS/JS a user downloads and runs online will have it's source fully viewable. There are no ways around this, and don't believe anyone that tells you otherwise. Also, don't disable right clicking on pages, etc etc, it's all incredibly weak protection that annoys people more than serves it's purpose!

    However, you can obfuscate the code, and run it through a compiler (for example Google's closure compiler: http://closure-compiler.appspot.com/home) and this makes it extremely hard, and requiring a lot of skill to make sense of your code.

    Obfuscation I believe is a feature that will be added to the export process as an option when Construct 2 gets more mature.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can at the moment manually put all exported JS through an obfuscator or the google compiler then server that, but I think there are some bugs (in regards to closure compiler) that need to be sorted out. But try running it through an obfuscator, there are lots out there.

  • Construct's code doesn't survive 'advanced optimisations' in the closure compiler, only 'simple optimisations' which has much less of an obfuscating effect. It might be something we can fix though, it's on my todo list to figure out at some point (but it's low priority right now since it doesn't actually affect any functionality).

  • ok thank you.

    I can definitely see why all the fuss about exe support even more so now.

    when c2 was still a glimmer in your eye, there was a survey about 'which 2 platforms' wasn't there?

    just curious, if exe is a definite planned feature? and would it more likely be after c2 is total and complete html5 working, or at a certain point will the second platform be added and progress along with html5 toward the initial fully functional version

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