GLBasic forum

Main forum => Beta Tests => Topic started by: kaotiklabs on 2008-Jun-02

Title: Just a simple flocking demo
Post by: kaotiklabs on 2008-Jun-02
Hi mates,

First of all, nice to meet you all.
I´ve recently discovered this great sdk for high speed developing and Im quite amazed.
My greetings to the developers.

Just one to show you a small demo about flocking behaviours.
The code is quite dirty, did it in 2 hours while I was learning the environtment.

Maybe I will use it in some kind of game, I think it looks cool.

mouse button 1 : atraction
mouse button 2 : repulsion

Give your opinion. Any ideas will be valorated.
See ya!


[attachment deleted by admin]
Title: Re: Just a simple flocking demo
Post by: Kitty Hello on 2008-Jun-04
Very nice. In flocking demos, fishes have a velocity that can never be 0. Thus, the fish won't stay on one spot. Apart from thtat, ace work.
Title: Re: Just a simple flocking demo
Post by: Quentin on 2008-Jun-04
looks nice. =)
but the fishies are flickering when not using the mouse. Perhaps you can make them moving around slowly in this case.
Title: Re: Just a simple flocking demo
Post by: kaotiklabs on 2008-Jun-05
hehehe I know, I know.
I'm not trying to straightly simulate fish flocks, just a generic algorithm implementation.

Either way rules' weights are not well balanced and that results in an ugly flickering.

I'll follow you're advice.
Thanks!