Clojurescript & Fabric Demo

May 06, 2013

Click here for a simple demo of our new drawing system. The most significant feature is that we are now rendering SVG assets to canvas using fabric.js, which gives a huge performance boost—and we can still use scalabe vector graphics!

I also switched back to ClojureScript. I’ve been waffling between ClojureScript and Javascript, but now I’m feeling much more confident about using ClojureScript exclusively.

This demo shows the most basic drawing features, such as sprite based animation, isometric position, and depth sorting. The animation is barely sync’d up—I’ll fix that when more interesting agent behaviors are included.

The agents are performing a random walk. Just for kicks, each agent is given a random speed and a random interval to make their next decision (some agents keep changing their mind very quickly).