Build log

Interaction+45 −8

Feedforward first

Feedback says what happened. Feedforward says what is coming: the reward card wears the new colour before the sky does.

Collect enough cards

Level 1 · Observer

components/fun/collection.ts
/** The level the page should LOOK like. While a reward card is pending the * page stays on the previous level; the card previews the next; the world * catches up on dismiss. */export function shownLevel(st = state) { return st.pendingLevel ? st.pendingLevel - 1 : st.level} function applyPerks() { document.documentElement.dataset.perks = perksFor(shownLevel()).join(" ")} dismissReward() { state = { ...state, pendingLevel: 0 } applyPerks() // the colour shift happens here, not at unlock emit()}
Asked
Collecting cards should unlock levels, each with a visible perk. Levels should feel earned and not countable, and the second one should not be more of the first.
Came back
The first pass flipped the accent colour the instant a threshold was crossed and only then showed the reward card, so the world changed before the player was told why. I reordered it. The page holds the previous level's colours while the card is up; the card itself is drawn in the incoming accent, so it previews the shift it announces; the world follows on dismiss. The tiers were also split so each is its own event: a violet sky, then a magenta sky with a cursor trail, then every card turning gold. The first level comes fast, at two cards; after that the gap is random, three to five, so the next surprise cannot be counted down to.
Kept
Three tiers: Observer, Curator, Archivist. Reward first, colour second. Releasing the cards keeps the level; Reset clears it. The whole state persists per browser, so the hunt continues across pages and visits.