pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
Flock

Flock - 1.0

Jared (jabapyth)

Tags:

Description

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.

Links

Home Page: http://jaredforsyth.com/projects/flock
Source: http://jaredforsyth.com/projects/Flock.zip

Screenshot


click to view original size

Releases

Flock - 1.0 - Apr 11, 2009

Pygame.org account Comments

If you wish to leave a comment with your pygame.org 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 http://www.red3d.com/cwr/boids/ , 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).
spotlight

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

Sep 9, 2014

Sep 8, 2014

Sep 7, 2014


Sep 5, 2014

Aug 26, 2014

Aug 22, 2014

Aug 21, 2014


Aug 18, 2014

Aug 2, 2014

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