Integrated ClojureScript with Construct 2 Plugin

0 favourites
  • 3 posts
From the Asset Store
Casino? money? who knows? but the target is the same!
  • I'm very excited, so I had to share.

    For those who don't know, ClojureScript is a modern Functional Lisp that compiles down to JavaScript using Google's Closure compiler. I like using it (and it's parent, Clojure) for AI development and controller logic.

    Anyway, ... I figured in theory I could use it in the plugin for Construct 2, but as far as I know it hasn't been done before.

    Success!

    I just integrated some compiled ClojureScript (:optimizations :simple) with my custom Construct 2 plugin. I replaced the ClojureScript plugin's common.js with my compiled ClojureScript and called the ^:exported ClojureScript function from my runtime.js with no problems.

    I'll write up the steps I went through and post a link for anyone that wants to try it, too.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'd like to know how to integrate a javascript library for my plugin so please do! Thanks!

  • I was starting to think no one cared <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";-)" title="Wink">

    Here are the steps for integrating clojurescript with construct 2 via a plugin. Doing so with a behavior would work the same way.

    http://javajdk.net/tutorial/clojurescri ... nstruct-2/

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