Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by alexandre

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.

1 decade ago by stahlmanDesign

For some reason it doesn't work in Safari, but it does in Chrome (both webkit browsers)

1 decade ago by alexandre

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).

1 decade ago by stahlmanDesign

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.

1 decade ago by alexandre

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.

1 decade ago by fugufish

very nicely implemented.

1 decade ago by alexandre

Bug killed. Cells free to roam again in Safari.

1 decade ago by alexandre

@fugufish
Thank you Sir!

1 decade ago by alexandre

I've uploaded a new version, with trails-like behavior. At 15fps, it still needs optimizations, though.

GitHub source

1 decade ago by alexandre

Optimized a bit. Now at 24 fps.
Page 1 of 1
« first « previous next › last »