whitetigle's Recent Forum Activity

  • Hi Guys!

    Thanks for the feedback, that was just what I was looking for. I will try this!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • HI,

    while I am a coder I am definitely not fluent in "modern javascript" especially when it comes to modules and loading them (AMD, CommonJS, UMD, etc...)

    Now, I do have a lib that I load using require.js.

    requirejs(["./myJsLib"], function (lib) {
            lib.doSomething();
        });
    [/code:4efybze6]
    
    My question is how would I use requirejs in a construct2 plugin? Is asynchronous loading possible?  And where would I put this call to know that the lib has been loaded? 
    
    OR i have another idea: 
    in the html file generated by construct2 could I load my lib first using AMD and then have access to my lib in this context FROM the Browser object via a javascript call ?
    
    [code:4efybze6]
        // Start the project running on window load
        jQuery(document).ready(function ()
        {		
             requirejs(["./myJsLib"], function (lib) { // load the lib and THEN launch the app
                    // Create new runtime using the c2canvas
        		cr.createRuntime("c2canvas");
             }
        });
        </script>
    [/code:4efybze6]
    
    Thanks for your reply!
  • HI,

    I am an 'experienced' game developer.

    Since last year I've been looking for some easy-prototyping-and-even-more solution. I mainly work as a contractor on html5 casual games, serious games and even on full stack web solutions that need to work on web mobile with some GPU candies.

    For the 3D side, I just felt in love with unreal engine and its blueprint and the fact I can still go back to C++ when I need.

    But for my daily 2D projects I needed something "lighter". I am already making apps using the great pixi.js but I wanted things to go even faster.

    After evaluating different programs ( stencyl, gamemaker, gamesalad ) I just found construct to be just plain pragmatic. It does exactly what I tell it to do. I can already plug my javascript code, I can publish through cordova and cocoonjs. It's just that great. And since I use Haxe/Scala for the js side, I am sure the code side is safe and so here I seem to have a complete rapid-development tool that will certainly suit 99% of my needs and that I can even push to my bitbucket rep.

    So it feels like I just found a great tool there

whitetigle's avatar

whitetigle

Member since 9 Oct, 2015

None one is following whitetigle yet!

Trophy Case

  • 9-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

11/44
How to earn trophies