Sixty elements, ordered by the stars
A progression that follows nucleosynthesis closely enough to teach it, and loosely enough to remain a game.
Published · 8 minute read
Sixty is a design constraint before it is a number. An idle game needs a progression that can be counted, a late game that still has somewhere to go, and a reason for each new source to exist. NanoGenesis has sixty element sources spread across ten star eras. The arithmetic is simple; the constraints that keep it from collapsing are not.
This is the shipped structure as the docs record it, and a story about choosing the cheapest place to make a change: the recipes stayed where they were and the elements moved.
The arithmetic of a progression
The spread is 10 + 5×4 + 6×5 = 60. The first era contributes the original
ten elements. Each of the next four adds five. Each of the last five adds six. The
cumulative totals are 10, 15, 20, 25, 30, 36, 42, 48, 54, 60 — a curve with a deliberate
step at the point where the free eras end and the Star Pack eras begin.
| UI era | Catalogue era | Access | Elements added | Total |
|---|---|---|---|---|
| 1 | 0 | Free | 10 | 10 |
| 2 | 1 | Free | +5 | 15 |
| 3 | 2 | Free | +5 | 20 |
| 4 | 3 | Free | +5 | 25 |
| 5 | 4 | Free | +5 | 30 |
| 6 | 5 | Star Pack | +6 | 36 |
| 7 | 6 | Star Pack | +6 | 42 |
| 8 | 7 | Star Pack | +6 | 48 |
| 9 | 8 | Star Pack | +6 | 54 |
| 10 | 9 | Star Pack | +6 | 60 |
Star 0 is deliberately outside that table. A fresh game opens on the Protostar, whose only
live source is carbon, with fiber the only buildable good. Both carry a tutorial tag, so
the reveal rule is starIndex >= era OR tutorial. The ten catalogue eras
begin at the M-class star, Star 1; the Protostar is the hand-played tutorial in front of
the ladder, not an eleventh era.
The invariant that saved the recipes
The rule is one sentence: a good in era E may only use elements and goods from eras at or below E. Every existing recipe satisfied it once the era assignments were changed. That meant no recipe needed rewriting — only the elements moved.
The recipe graph is the expensive, interlocked part of an economy. A recipe states what the game is; an era assignment states when content appears. The first ripples through balance, UI and saves. The second is a pacing decision. Given the choice, move the second.
Ten elements were added to the original fifty: Li, Be, B, F, Sc, Sn, Sb, W, Re and Hf. He and N moved out of era 1, to eras 2 and 5. Era 1 is exactly the original ten — H, C, O, Si, Fe, Cu, Ti, Au, U, Xe — which is why it does not read like a clean astrophysics syllabus. The original ten were load-bearing for every early recipe, so they stayed.
Mapping the eras
The ordering gestures at stellar nucleosynthesis at the level a player can feel: light elements and stellar-burning products early, the iron peak in the middle, then the slow-neutron-capture elements and the rare, late, expensive things. It is not a simulation. Several era-1 elements are not early products of a single star, and the docs say so.
| Catalogue era | Elements |
|---|---|
| 0 (Era 1) | H, C, O, Si, Fe, Cu, Ti, Au, U, Xe |
| 1 (Era 2) | He, Na, Mg, Al, P |
| 2 (Era 3) | S, Cl, Ar, K, Ca |
| 3 (Era 4) | Sc, V, Cr, Mn, Co |
| 4 (Era 5) | N, Ni, Zn, Ga, Ge |
| 5 (Era 6) | As, Se, Br, Kr, Rb, Sr |
| 6 (Era 7) | Y, Zr, Nb, Mo, Ru, Rh |
| 7 (Era 8) | Pd, Ag, Sn, Sb, Te, I |
| 8 (Era 9) | Cs, Ba, W, Re, Hf, Li |
| 9 (Era 10) | Os, Ir, Pt, Be, B, F |
The judgement calls are written down rather than hidden. The ten new elements were unconstrained by recipes, so they were slotted into the later eras to make the counts work. A few — lithium, beryllium, boron and fluorine — sit later than their astrophysical origin strictly suggests. They are in era 10 because the final era needed six elements and those were the six left.
Four orbits, not ten
The canvas groups the sixty sources onto four orbit rings rather than one ring per era. Orbit 0 is era 1. Orbit 1 holds eras 2–4. Orbit 2 holds eras 5–7. Orbit 3 holds eras 8–10. Production pods condense to the same four era bands, multiplied by their tier ladder.
Ten rings around one star, viewed across a 0.06×–3.6× zoom range, would collide long before the late game. Four bands preserve tap targets, keep the reading order stable, and let a player recognise "the outer ring is the late game" without a legend.
Research as a streaming contract
Element research is one slot at a time, implemented in game/research.ts. The
panel lists only sources from eras already reached, or live on the tutorial tag; while a
survey runs, every other card is disabled. The canvas ghost is drawn at the element's
settled position, so it solidifies in place rather than jumping when the survey completes.
Costs are era-aware through catalogueElementCost in
game/elements.ts. Every survey wants starter matter — carbon, silicon or iron
— plus an assembled production. Era 1 keeps its authored costs, varied per element. From
era 2 onward, the first two sources of an era also consume the late elements and
productions of the era just finished: era 2 opens on era 1's gold, uranium and xenon plus
its late goods; era 3 opens on era 2's magnesium, aluminium and phosphorus plus its goods,
and so on.
The rest lean on the source and production discovered just before them in their own era. Nothing references itself or a later element in the same era, and a production's inputs are always reachable, so a cost is never circular. The contract is less about difficulty than direction: every price points backwards at something already built.
Cost keys are kind-agnostic strings resolved by heldCost and
spendCost in formulas.ts, so any assembled good can be priced.
The aluminium and germanium goods had to be renamed aluminiumIngot and
germaniumIngot, because they otherwise shared an id with the elements. That
is the kind of cost a design document does not record until it breaks a lookup.
The upgrade tree detour
The element section of the upgrade tree mirrors the locked Process grid. Era 1 has
M-Class Stoking at rung 1 and the ten element spokes — Reserves, Generation,
Entanglement — on rungs 2–4. Eras 2–10 each get an unlock gate at rungs 5, 9 or 13, with
that era's elements on the next three rungs: a 3×3 grid across three anchor spokes, cycling
1 → 2 → 3.
The first attempt put Elements into Process's shared radial solve. It perturbed era 1 and
broke the Process lock, so it was backed out. The outer-grid rungs are now computed per
section in upgradeTree.ts under OUTER_GRID, which let Elements
join Process without rescaling era 1. A shared layout solver couples unrelated content; a
section-local solve was cheaper than making the global one admit a new tenant.
What the design protects
The invariant is checkable. If a good in era E references an element from era E+1, the build is wrong. The counts add up without special cases (10 + 5×4 + 6×5 = 60). Production counts and the Process layout are untouched; only element eras and the element section changed.
The judgement calls are equally load-bearing. Lithium, beryllium, boron and fluorine are late because the progression needed them there, not because the physics demanded it. Saying that plainly is better than dressing a count constraint as astrophysics.
The takeaway generalises beyond games. When a progression has to grow, move the content before you move the graph. Keep the rule that makes the graph safe written down and checkable. And when a constraint forces a compromise, write the compromise into the record — the future reader can then decide whether to keep it, not rediscover it.
The companion entry, Retiring the canvas renderer, covers the playfield these sixty sources sit on: a renderer migration in two acts, one measured no and one measured yes.
Games, data, or the systems underneath them.
We build all three, and we write down why. If you want that kind of record kept on your project, start a conversation.
Start a Conversation