I've just uploaded a port of
Conway's Game of Life, done with Impact, to my (new & very much WIP)
web site.
Source on
github as well.
MikeL's Symbols plugin came in very handy, so mucho thanks Mike.
For some reason it doesn't work in Safari, but it does in Chrome (both webkit browsers)
I found the design flaw. Will fix in a few hours.
I was using MikeL's Symbols plugin to maintain cell states and (cleverly I thought) to use said states as BackgroundMap data tile indices, forgetting that the symbols are powers of 2, hence leading to out-of-range errors (that Safari choked on while Chrome forgave).
I can see where MikeL's Symbols plugin would be a good choice for your project since it is pretty efficient in creating numbers by bit shifting, if I remember correctly.
For Conway's GOL, cells can only have one of 2 states: dead, or alive. So I don't really need the ability to combine states. I think I'll fork Symbols and add the init bitwise enablement flag that Mike had talked about in an earlier post.
EDIT:
... and not. Cells can either be dead or alive. Easy enough to fix, by keeping state (hence map indices) early in the list. I'll hold on to my forking aspirations for now.
Bug killed. Cells free to roam again in Safari.
I've uploaded
a new version, with trails-like behavior. At 15fps, it still needs optimizations, though.
GitHub source
Optimized a bit. Now at 24 fps.
Page 1 of 1
« first
« previous
next ›
last »