Starting with C++ or Javascript

  • sathono
    Likes 0

    Problem Description

    After getting into a few months of development, I am left with the question, should I be using javascript or C++ to develop my game?

    Since javascript is not compiled, the source code files seem to have to be left in the games root folder, allowing for thieves to just steal the work. If a paid app is released in javascript, couldn’t these thieves just steal the source code and reproduce the product for free, causing the developer to loose money and time?

    As for as im aware, the C++ code is compiled. I am already a few months into my game development, but would like to get some input on the best possible approach to this situation. I see a few options:

     

    a.) Keep writing the game in javascript, release it that way

    b.) Switch over to C++, start over

    c.) Continue programming in javascript, and convert over to C++ when finished to compile (is this possible??)

     

    I would greatly appreciate any sort of guidance based on my concerns, thanks

     

  • Sonar Systems admin
    Likes 0

    Honestly no issue with JavaScript, continue with JavaScript as it supports web and will be the most popular language in the long term.

  • sathono
    Likes 0

    I love javascript and how easy it is to test on the web, but from a security point of view, would you still recommend javascript over C++? The last thing I want is to put months of work into a project, and have someone end up stealing the code contents and either reproducing them or modifying them. Especially for paid apps, security is a must, you wouldn’t want someone else getting money for your app!

    Is there no way to compile or password protect the scripts? I have seen app developers password protect code and assets before. Either that or some form of encryption/compiling would be great, is there any way to secure the data at all?

  • Sonar Systems admin
    Likes 0

    Take a look at this for some security http://stackoverflow.com/questions/16190610/cocos2d-html-code-encryption

     

    I would recommend continuing with JavaScript

  • sathono
    Likes 0

    Great, thank you.

    Just one more question.. Would it be possible to convert to Cocos2d-X after my application is finished (I don’t plan on releasing final product as web)? Seeing as most of the Js code appears to be converted to C++ at runtime anyways, im getting the idea that this may be possible. 

  • Sonar Systems admin
    Likes 0

    Do you mean convert your JS projec to C++?

  • sathono
    Likes 0

    Yes, would this be possible?

  • Sonar Systems admin
    Likes 0

    Not really as the process would be a manual one in which you have to port the code manually.

  • sathono
    Likes 0

    Damn, alright well I suppose I’ll stick with javascript for now in that case. Thanks for the help man, its greatly appreciated!


    This reply has been verified.
  • Sonar Systems admin
    Likes 0

    Your welcome, feel free to ask any more questions you may have.

Login to reply