Flying creatures, another Processing sketch

I have just finished reading chapter I  of this useful book: The Nature of code. At the end of the chapter there is a challenging exercise: creating a word with different creatures that move around with different patterns.

The sketch I have made this time is a sort of sky where there are two kinds of creatures: flies and birds.

Flies go around with sudden changes in their movement, birds are have more coherent flights but when they get close to flies they try to catch them.

The code is hosted on openprocessing: http://www.openprocessing.org/sketch/84168

Image

Advertisements

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