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:
Andy Dixon
2026-09-05 15:20:50 +01:00
parent e2f9c317c6
commit 6cc039b5a3
7 changed files with 217 additions and 4 deletions
+1
View File
@@ -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