Personal Space

This is a first play with coffescript, a different way of writing JavaScript. I may not continue with the learning curve but it sure is pretty source to read and it’s nice having a traditional class structure available. Coffee source here.

The experiment itself is an attempt at an “anti flocking” algorithm. The user agents are all independent and act to keep a certain level of space between them. It’s working, just, but as always there’s plenty to optimise here. It could easily be expanded into a simple game – think the “gig meister” whose sole purpose in life is to get to the front row of events in the shortest possible time, the crowd could become denser as they progress to bigger and badder bands. Or something like that.

Tech: , ,

START