Wednesday, September 06, 2006

Another processing thing

In this little program, two rectangles bounce around limited by the walls of the canvas. They cannot overlap. When the smaller one hits the bigger one, the bigger one increases or decreases its speed depending on whether they collide or the smaller one pushes it in the same direction as it's already going. (spectacularly formulated hehe :)

Launch Application

Download Code (opens in notepad or processing)

0 Comments:

Post a Comment

<< Home