Pages to see:
« Color Quickie Redux | Main | Ye of little faith... »
Wednesday
Jul012009

A swarm of gnats quickly devoured the food spawning a new one. 

My addition in a sentence. Click to move the food. This update as entailed a rewrite to make everything object oriented, which made the addition of multiple gnats rather easy. There might be some array out of bounds errors at high levels of gnats when holding the mouse down.  Applet after the jump.

 

This browser does not have a Java Plug-in.
Get the latest Java Plug-in here.

 

Source code: Gnats_OO

Built with Processing

 

PrintView Printer Friendly Version

EmailEmail Article to Friend

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>