DEV Community

Discussion on: It's alive! Simulate organisms with Conway's game of life on a canvas 🧫🔋

Collapse
 
esger profile image
Esger Jellema • Edited

I built this many times before, trying to speed things up. This is my latest version ashware.nl/fast-life/
The code can be found via my homepage.

Collapse
 
thormeier profile image
Pascal Thormeier

Oh wow! I love how the animation also allows to see previous generations. What were the challenges you faced during this implementation?

Collapse
 
esger profile image
Esger Jellema

Thank you! Here my main challenge was trying to speed things up, again :)
So I built an AureliaJs web app and a web worker to do the heavy lifting.
The 'trails' were quite simple to accomplish: just draw the new generation with opacity < 1 in order to faint all 'old' cells a bit every generation.
PS. You can even change the rules of life while it's running and change various other settings as well.

Collapse
 
aleksandrhovhannisyan profile image
Aleksandr Hovhannisyan

Beautiful animations!

Collapse
 
esger profile image
Esger Jellema • Edited

If you like what you see, have a look at ashware.nl/buglife/# :)