Download 10997
A few months ago, I released my new record, 10997. I put it out as a CD-R and gave copies to friends and to people who emailed me. I was reluctant to make it downloadable because the lyrics are about stuff that was current affairs. Now, however, that’s not really true, so stream and download away.
Machine.js
The first version of the artificial intelligence code that controlled the enemies in Pistol Slut, my 2D platform shooter, was a nightmare thicket of if statements. Fortunately, someone told me about behaviour trees, and, after reading half of an excellent article about their implementation in Halo 2, I rewrote the Pistol Slut AI code as a hierarchical state machine. To do this, I made a little JavaScript library called Machine.js that implemented a generic behaviour tree. This code is open source, like all of the code I write in my spare time, but, today, I broke it out into its own library and released it as a separate project. This should make it easier for other people to reuse.
Go to the Machine.js home page to get the code and read a tutorial.
And, in case you are interested, here is the entire behaviour tree for the enemies in Pistol Slut:
JSConf US 2011
I’ll be speaking at JSConf in Portland on 2nd May. I’m very excited. I will talk about Pistol Slut. Specifically: fakery, artificial intelligence, collision detection and falling in love.
10997
I have finished my new record. It has four songs: Argentina, Somaliland, Barcelona and Nicaragua. I recorded it on my phone in the kitchen of my apartment in Berlin. You can listen to and download it here.

The slides from my talk on Pistol Slut
Update: I gave a newer version of this talk at JSConf US 2011. See the slides.
I'm giving a talk about Pistol Slut at the Berlin JavaScript group
I’ll be speaking about Pistol Slut at the Berlin JavaScript group at 7pm on 17th February 2011. You can find out more on the Lanyrd event page.


















































