Add field-notes lore codex (c2) - #11
Merged
Merged
Conversation
12 persistent lore collectibles (3 per level) that glow like little parchment pages in the world; discovering them unlocks short dino-archaeologist field notes in a new codex screen on the menu (C or the "Field Notes" button). Undiscovered entries show "???" with a hint to keep exploration rewarding. - src/lore.ts: NOTE content + FieldNote entity (cool glow, distinct from the warm fossil glow) - level-data: notes[] per level, all placed on solid ground - pickup loop in player, collectNote in game/store (tinyrex_notes) - renderCodex: 4 parchment columns, found vs hint, wrapText - stats line NOTES n/12 in menu - 'note' SFX; tests: 14 new (placement validation for all 4 levels, persistence, codex toggle); 239 total
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
12 persistent lore collectibles (3 per level) that glow like little parchment pages in the world. Discovering them unlocks short dino-archaeologist field notes in a new codex screen on the menu (press C or the "Field Notes · C" button). Undiscovered entries show "???" with a hint — a small nudge to keep exploring.
Details
src/lore.ts(new) — the 12 notes (dino-archaeologist voice, one per level × 3) +FieldNoteentity with a cool parchment glow, distinct from the warm fossil glow.src/level-data.ts—notes?: Point[]per level; all 12 placements validated on solid ground (unit-tested).src/player.ts/src/game.ts/src/store.ts— pickup detection,collectNote(score +noteSFX + persist totinyrex_notes, survives reload), menu stats lineNOTES n/12.renderCodex— 4 parchment columns; found entries show title + wrapped text, undiscovered show "???" + hint.Validation
npm run typecheck✓npm test— 239/239 ✓npm run build— 143.56 kB / 44.28 kB gzip ✓npm run lint✓Part of the 10-feature enhancement program (batch C). Next: c3 — Hall of Claws (local leaderboard + mid-run personal-best burst).