Give residents identities and an ID card
Clicking a resident (or aiming the walk/fly crosshair at one and pressing E) selects them: they stop walking, glow pink with a wider halo, get a name tag above their head, and the sidebar shows a resident ID card instead of code. The card has a drawn head-and-shoulders portrait (eyes and hair in their colours), name, sex, age, occupation and employer, eye colour, hair colour, blood type, where they were last seen, an ID number and a barcode. people.js generates identities deterministically from the repository name and resident index using nymshift's England/Wales names and taxonomy tables, so the same resident is always the same person. Picking projects each figure to the screen and ignores residents hidden behind buildings. Tested for stability, table membership and sex/first-name consistency.
This commit is contained in:
@@ -58,6 +58,7 @@ Plain ES modules, no framework, no build step.
|
||||
| `camera.js` | Matrix maths: perspective, lookAt, inverse, orbit pose |
|
||||
| `city.js` | Pure city logic, unit tested: layout, collision, navigation grid and routing, sign placement, tape, walls, posters, residents, place links |
|
||||
| `labels.js` | Text atlas for signs (shelf-packed canvas) and the poster atlas |
|
||||
| `people.js` | Residents' identities, generated deterministically from the repository name and resident index, plus the ID card portrait |
|
||||
| `api.mjs` | `fetch` wrapper and SSE-over-fetch parser |
|
||||
|
||||
### Views
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ scale, so a large repository is a large city.
|
||||
| **Cyan chevrons** on the road | Route to a file the selected file imports (**amber** if the import was inferred) |
|
||||
| **Pulsing magenta dashes** on the road | Route from a file that imports the selected file |
|
||||
| **Arcs** in the sky | The same import relationships, as the crow flies |
|
||||
| **Green figures** | Residents. They don't mean anything; they just live there |
|
||||
| **Green figures** | Residents. Click one (or aim the crosshair and press `E`) and they stop, glow pink with their name overhead, and the sidebar shows their resident ID card: name, sex, age, occupation, employer, eye and hair colour, blood type. The same resident is always the same person. |
|
||||
| **Wall with posters** | The city limits, with a few facts about the codebase pasted on |
|
||||
|
||||
## Getting around
|
||||
|
||||
Reference in New Issue
Block a user