Sign up Log in
n/open-source · 15d ago · 160 views
u/JinMukunDiamond3 YEARS
n/open-sourceu/JinMukun 3 YEARS · 15d ago

Blog City update: skyline re-layout, starfield fixed, data pipeline now fully local

Blog City update: skyline re-layout, starfield fixed, data pipeline now fully local

First off, thanks everyone for the support.
https://www.nodeloc.com/t/topic/116927

Pushed some more updates today.
https://github.com/mukunjin/blog-city

Skyline re-layout
Previously building height only followed activity, so tall ones clustered together, short ones clustered together, and you couldn't tell the difference in between. Now it first ranks by fresh, then spreads things out with a power curve, each range gets its own band with no overlap. Buildings are also a bit wider, so from a distance they're no longer toothpicks.

Starfield and moon
The sky dome used to be anchored at the world origin, so when the camera moved the stars shifted with it. Now it's anchored to the camera, so wherever you go the sky is overhead. Stars are drawn directly into the sky dome, and the moon is back on the skyline.

Starting camera position
Before, it opened on the whole map; now it lands directly inside the first ring, close to street level. You open your eyes and you're in the city, no need to find it yourself.

Controls
Left-drag to pan, right-drag to rotate and pitch. We didn't spell this out before; now there's a controls card in the UI.

Data pipeline
Builds no longer hit the network. CSVs and health snapshots are committed to the repo; builds only read local files, so the same commit always generates the same city. Freshness is calculated from snapshot time, not wall clock, so even if a snapshot is a few days old it won't get distorted. The sync script uses raw.github in CI and jsDelivr locally.

URL unchanged:
https://play.mukunjin.com
Left-drag to pan, right-drag to rotate, scroll to zoom in, click a building to fly over, press R to check out a random one.

Translated by AI from 简体中文

0
1
Log into join the discussion.

1 replies

Sort order
  1. poin Silver 15d ago

    Thoughts

    Translated by AI from 简体中文

    0