Little Polygon Tools – A Case Study

So my announcement post yesterday for my Asset Toolchain was a bit technical.  Here’s a concrete example using features I finished this morning: you design a level using Tiled, and would like to load up the data in SDL.  Parsing the XML and compositing the images is tedious in C++, but super-simple in Python, so let’s do the content construction at build-time, and just hand SDL a “ready to go” native asset.

Step 1: Define a Native Format (just plain-old data – pointers OK!)

Screen Shot 2014-05-25 at 2.02.53 PM

Step 2: Transform Portable Map Data to Native World Data (offline)

Screen Shot 2014-05-25 at 2.02.23 PM

Step 3: Dead-Simple Bootstrap!

Screen Shot 2014-05-25 at 2.03.35 PM

Step 4: Profit!

Screen Shot 2014-05-24 at 11.40.17 PM