I was coding in a tail made out of circles from 2 to 0.1 radius (was trying to make them look like sperm since I think the new game name will be Fertile Ground), when all of a sudden, the boids came out looking like ghosts. Having two body segments that have connective tissue looks extremely expressive, and pulls the feeling away from single-celled organisms. Trying to figure out a game narrative that takes a critical look at conception. Something to do with intelligent design?
The offending chunk of code after the jump:
The trick: I used
5.0f
instead of
TRAIL_LENGTH
(which is defined as 15)…
for(int i=TAIL_LENGTH-1;i>=0;i--){ glPushMatrix(); glTranslatef(tail[i].x,tail[i].y,0); ofCircle(0,0,2.1f-(float)i/5.0f*2); glPopMatrix(); }