I’ve written a short story about a mother trying to understand her daughter’s fascination with Life: https://justinmanley.work/projects/lifestory. The text is interleaved with interactive Life simulations, mostly classic old patterns that everyone here will recognize: a Gosper glider gun, the r-pentomino, Kok’s galaxy, a Schick engine glider synthesis, gliders galore, and more (most of which I collected through spending wayyy too much time trawling the wonderful wiki!).
The page runs the interactive Life simulations using a custom TypeScript library written for the purpose. The library lays out patterns embedded throughout the text into a single unified Life grid, but only evolves cells when they are within the browser viewport. It also provides mechanisms for preventing patterns from getting corrupted when they pass into and out of the viewport (more details in this blog post).
I built the library for the short story, but it should also be useful for other purposes as well, if others want to use it to embed scrollable zero-UI Life simulations into tutorials or blog posts or other web-based texts (in addition to the short story, the library powers the blog post linked above).
It’s easy to get patterns into a page: they’re specified using RLE files (if you open the Network tab in Developer Tools while viewing the short story, you can see all the RLE files coming in). More details on how that works here.
I’m happy to answer questions if anyone has questions about the story or the library.
Short story featuring interactive Life simulations
-
- Posts: 1
- Joined: February 7th, 2023, 5:22 pm
Re: Short story featuring interactive Life simulations
Welcome to our Community Justin Manley !
Thank You for sharing your creative writing
and also this wonderful new webpage tech
for embedding
scrollable zero-UI Life simulations !
Cheers !
Thank You for sharing your creative writing
and also this wonderful new webpage tech
for embedding
scrollable zero-UI Life simulations !
Cheers !
"One picture is worth 1000 words; but one thousand words, carefully crafted, can paint an infinite number of pictures."
- autonomic writing
forFUN : http://viropet.com
Art Gallery : http://cgol.art
Video WebSite : http://conway.life
- autonomic writing
forFUN : http://viropet.com
Art Gallery : http://cgol.art
Video WebSite : http://conway.life
-
- Posts: 2
- Joined: February 26th, 2023, 1:55 pm