The Hunt

In an effort to model organic behaviors and natural systems, I created a simulation of a pack of wolves hunting a herd of reindeer using Paper.js in JavaScript.

Each individual wolf or reindeer is an independent actor but follows certain sets of behaviors, such as keeping a certain proximity to other members of its pack or herd. Wolves will attack any reindeer that comes too close, and reindeer will flee from wolves and spread out the herd as the wolves approach, eventually surrounding the pack in a counter-attack also observable in nature. The herd of reindeer can be directed somewhat (the herd does have a will of its own) with the mouse in order to avoid or provoke confrontation.

This was my first foray into using JavaScript and modeling natural systems, and the realization that even complex behaviors can potentially be reduced to a set of simple rules opened a world of possibilities for me.