« its_aliFe: nuclear option (plus some on new focus) | Main | How I became an enemy combatant in the Math Wars, Part 1, Introduction to the Math Wars »

it's...aliFe!--better explosion

So, the game of life now has a better explosion. Took more time to do this than any of the other features, but my son's gleeful giggle upon seeing it made it worth it.

First I just set it up to send all the currently "on" squares radially outward (actually I think it was/is a little more complex than that--they go out in such a way that everything gets to the outside at the same time). I had to struggle with it for quite a while until I figured out that Director was doing something weird when you called "mod" against floating point numbers. Anyway, when I finally got it all worked out, the explosion was disappointingly mundane. So I added a couple of rings around the center so there's always something to explode, and voila! giggles.


TrackBack

TrackBack URL for this entry:
http://www.leftoverpi.com/cgi-bin/mt/mt-tb.cgi/32

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

This page contains a single entry from the blog posted on February 10, 2008 8:50 PM.

The previous post in this blog was its_aliFe: nuclear option (plus some on new focus).

The next post in this blog is How I became an enemy combatant in the Math Wars, Part 1, Introduction to the Math Wars.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.33