Boids Update

Thank you and you for inspiration. Check those links out to see how real masters are doing it 🙂

Now everything’s smoother – esp. camera movement (the camera now aims towards the overall center of the flock).
The applet is here (does not work 100% since opengl in a browser isn’t that common. it surely won’t work if java 5 (1.5) is installed on your machine).
Applications are here (download the appropriate folder for your os).
Command list (ripped from the code):

void keyPressed() {
switch(key) {
case RETURN:
changeCenterAtRandomCode();
break;
case ‘e’:
evade = !evade;
didi.evade(evade);
break;
case ‘b’:
bgclr = color(0, 0, 0);
break;
case ‘w’:
bgclr = color(255, 255, 255);
break;
case ‘r’:
didi.lines();
break;
case ‘h’:
big = !big;
default:
break;
}

Later edit: zipped mac app here, inside the os folder. never thought of this.
Also, take care when using ‘e’ (evade key). press it twice.

Advertisements

3 thoughts on “Boids Update

  1. I can’t download the mac app; you’re better off zipping it first, as Apache doesn’t seem to know how to handle it.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s