Meta

Archive for the ‘Uncategorized’ Category

spectrograms are fascinating: the ability to visualise sound in terms of its constituent frequencies. I’ve been playing with Overtone lately, so decided to create a mini-library to produce spectrograms from Overtone buffers.

Here’s a sample output:

This particular image is a visualisation of part of a trumpet fanfare. I like it because you can clearly see the punctuation of the different notes, and the range of strong harmonics above the base note. Read on for some more details on how this works.

Having successfully completed the first two goals, this is my attempt to deliver on the last point. In this (somewhat extended) post I’m going to describe my experiences using Clojure for the 7DRL challenge – with discussion how to get the most out of Clojure for game development.

I was going for a fairly traditional Rogue-style effect in my dungeons: Rooms connected by twisty corridors. I’m quite pleased with how it is starting to look.

My algorithm is roughly:

– Recursively sub-divide the dungeon into zones, BSP-style
– At each division, add one or two connection points between the zones. The connection points will be either doors or corridors
– At the lowest level, build either a specific room with the connections turned into doors or a set of twist passages

I’m still working on room decoration: I maintain a list of rooms and after the basic level is laid out I run a “decorate” function that adds items of interest, monsters and other scenery to specific rooms.