Following a few set of rules, one can simulate flock-like behavior.
This is a simple implementation of those rules. The birds are guided towards the location of your cursor.
For more information on Boids, see here.
The source code for my implementation can be found on my GitHub here.