A swarm of gnats quickly devoured the food spawning a new one. 
Wednesday, July 1, 2009 at 11:43PM
Jeff in OO, Processing, gnat, swarm

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

 

Article originally appeared on J.B. Wincek (http://this.jeffwincek.com/).
See website for complete article licensing information.