living cities
A casual benchmark for making living cities with various models.
Build a cozy living city simulation as a single HTML file. Be ambitious. Do not ask me questions, use your best judgement.
Requirements:
- One self-contained HTML file. No external libraries, images, or network calls. It must run offline in a modern browser and be performant.
- Use the seed 42 for all random generation so the result is reproducible.
- Generate natural-looking terrain with noise.
- Start with a few houses and roads. Over time the city should grow using simple rules which make it look and feel like an alive city
- Put citizens in the city. Each one at the very least has a home, a workplace, and a daily schedule, and walks between places. Show day and night.
- Have a fixed-step tick of one tick = 1 sim hour
- Use a fixed canvas of 800x600.
Note that the HTML file will be embedded in a longer blog post.