Page 2 of 2

Re: Boids

Posted: Sat Sep 25, 2010 2:18 pm
by anhtuan445
Hi its me again! I would really appreciate if I could get the boids file. I have been wanting to do it in c++ for a long time, but your work could help me play around with it in LÖVE. Hope its not in your old PC so you can get it ;)

Re: Boids

Posted: Sat Sep 25, 2010 2:36 pm
by Robin
Hi :3

Unfortunately, with this one it's the same story.

If you are looking to implement boids yourself, Frock is probably a better place to start anyway.

Re: Boids

Posted: Sat Sep 25, 2010 6:14 pm
by vrld
I have one, it's rather old though.
Black triangles are regular boids. The green ones try to follow the mouse. Place attractors with a left-click, repulsors with a right-click. Spawn new boids with your scroll-wheel.

Re: Boids

Posted: Sat Sep 25, 2010 6:29 pm
by anhtuan445
Thanks, will look at it later :)

The Frock is for older version of Löve, so I need to make it work - now it runs, but many things still crash it. I hope I get the general idea from it though.

Anhtuan

Re: Boids

Posted: Sat Sep 25, 2010 8:53 pm
by Robin
Looks nice, although it seems to be more swarming than flocking -- and the repulsors don't seem to repulse them very much. ;)

Re: Boids

Posted: Sat Sep 25, 2010 9:00 pm
by vrld
Robin wrote:Looks nice, although it seems to be more swarming than flocking
I think that's because I did not implement the third flocking rule (try to keep at the same speed as the others). It servers well as starting point nonetheless :roll:

Re: Boids

Posted: Sat Sep 25, 2010 9:02 pm
by Robin
True.