hacker news Hacker News
  1. new
  2. show
  3. ask
  4. jobs
An experiment with maze generation, started off in Rust, then ported to js to make it a web-app.

The algorithm, code and setup aims to make it simple - and as always, simple turned out hard ;).

The "about" dialog has some more information on choices made, tech used, inspiration and backgrounds.

Most important, for a tech crowd, I guess is:

- it uses p5.js - I generally prefer just vanilla js and canvas for my generative art projects, but here I wanted to focus on the outcome, not the tooling.

- uses seedrandom with the name of you and your valentine as seed. So a unique, but reproducible maze for a pair of names. Randomness controls the colors, layout and maze generation.

- Yes, the code is a mess still. Refactoring breaks my creative process, so I tend to postpone it (aka forget about it...)

- It uses some browser apis (share, copy, download) that don't work for all browsers in all setups (e.g. copy doesn't work on my firefox android, no idea why).

The source code can be found here: https://github.com/berkes/art/tree/main/lost-in-love

loading...