pygame is
Simple DirectMedia Layer is
Site Swing

Flock - 1.0

Jared (jabapyth)



This is a basic flocking implementation, demonstrating the organization and collection of many bodies in a cohesive group. The boids all follow the mouse, and are bounded to stay inside the screen.


Home Page:


click to view original size


Flock - 1.0 - Apr 11, 2009 account Comments

If you wish to leave a comment with your account, please sign in first.

January 9, 2011 7:18pm - Oscar Ramirez - nickname: (dowal)
Anyone have a mirror for the source of this project? I am very interested in playing with this, but the source is not available at the given link.
April 13, 2009 7:16am - Jared - nickname: (jabapyth)
yeah, i'm working on obstacle avoidance right now
April 11, 2009 11:40pm - Ian Mallett - nickname: (geometrian)
Nice effect! The boids do touch each other sometimes though... How about obstacle avoidance like in the movie? That would be cool...
April 11, 2009 6:25pm - Jared - nickname: (jabapyth)
Yes they do. the boids here generally follow the behaviour outlined on this page , namely separation, alignment, and cohesion.
April 11, 2009 5:28pm - retroredge - nickname: (retroredge) - 4/5
Good stuff again Jared. Do the boids avoid touching each other?
April 11, 2009 2:11pm - Jared - nickname: (jabapyth)
dang. thanks for the heads up ;)
its updated now
April 11, 2009 2:03pm - Anonymous - nickname: (pywiz32)
Oops! You forgot to include the sprite module. (ImportError: No module named sprite).

our projects welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
recent releases
Nov 17, 2015

Nov 12, 2015

Nov 11, 2015

Nov 8, 2015

Oct 16, 2015

Oct 9, 2015

Sep 11, 2015

Sep 6, 2015

Aug 26, 2015

Aug 25, 2015

... more!
for pygame related questions, comments, and suggestions, please see help (lists, irc)