Trees and nanoKONTROL

A few days ago, I got a KORG nanoKONTROL2 to play with. It’s supposed to be for music stuff, but I just like all the sliders and dials.

I wanted to hook this up to my fractal tree stuff to control a little forest with all the sliders and dials. The demos folder for my tree library was getting a little bloated so I wanted to break out the demos into their own repo first. And to do this properly I decided to convert the library from just a script that creates a global object into an npm module. I settled on webpack with babel-loader to pack things up. I decided to go with babel-loader so I could use the ES6 module syntax.

One thing I got hung up on while trying to get this setup working was when I couldn’t figure out why my module was only exporting an empty object. And when I tried to use it I just got lots of foo is undefined errors. It turns out you can’t just export default something from your main file and expect webpack to know what to do. You actually have to configure webpack to export a module. Eventually, I set up the appropriate config values, got all the demos working off the module, and moved them into a new repo.

With that done it was time to get ready to hook up the nanoKONTROL2. Now, by default, the trees that come out of my library can have a lot of randomness, which isn’t good for smooth animated transitions between values. But a while back I made a creepy animated tree with a function that is constrained to only creating deterministic trees. It had a nice simple interface where you just pass in an array of numbers with values between 0 and 1 and you get a tree. This was inspired by ideas from Kate Compton’s ProcJam 2015 Talk.

So now I just had to hook up the values from the sliders and dials to some trees. I used this excellent library to do most of the hard work there. And here’s the result.

If you have your own nanoKONTROL or nanoKONTROL2 you can try it yourself in any browser that supports webMIDI. (please plug in your device before loading the page.)

2016 7DRL Success

I just finished the 2016 7DRL Challenge. My game is called Bisbee’s Escape. It’s inspired by games like Dig Dug, Mr. Do, and Digger. Your only weapon is crates you can drop on enemies. But these crates have different effects for you to discover.

I didn’t have as much time as I wanted to work on it this year so it’s a little rough around the edges. But it’s playable enough and I hope to fix all the outstanding bugs in a later post-challenge release. Go check it out!

Bisbee's Escape Screenshot

Play Now

Starting the 2016 7DRL Challenge

I’m starting the 2016 Seven-Day Roguelike Challenge now (Sunday, March 6th, 10PM EST). Accounting for Daylight Saving Time, I have until Sunday, March 13th, 11PM EDT to finish. More interesting updates soon?

Hey, look at this.

Sometimes I want to share a few Tweets or other things as a group. But usually something like Storify is overkill for what I’m sharing. So I made this minimalist tool that can share Tweets and a few other types of social media posts as embeds.

Just type in something like this:

Hey, look at this composing.

You’ll get a giant link that looks like this:

That link will take anyone to a page that looks like this:

Hey, look at this viewing.

It’s still a work in progress but I’m happy with what it does so far.

You can find it here:

Source is here: