Night City

Generative embeddable night scenes that run forever and never repeat, seeded from the clock

Experiments in generative scenes that run forever and never repeat. Each scene is a small set of rules fed by one random generator, seeded from the clock. Nothing is a stored clip and nothing loops: events are generated as they happen, so no two runs play the same way.

Any scene can run as the live background of another site with one line:

<script src="https://anistark.github.io/nightcity/embed.js" data-scene="pixel-city" async></script>

The scenes use no libraries, only plain JavaScript and Canvas 2D.