Skip to content

Quest-Ear: NPC corpus system, multi-language rotation, riddle NPCs#176

Open
Umanistan wants to merge 1 commit into
corpora-inc:mainfrom
Umanistan:quest-ear-ongoing
Open

Quest-Ear: NPC corpus system, multi-language rotation, riddle NPCs#176
Umanistan wants to merge 1 commit into
corpora-inc:mainfrom
Umanistan:quest-ear-ongoing

Conversation

@Umanistan

Copy link
Copy Markdown
Contributor

Summary

  • Full 27-language NPC corpus with 10 vendor types and 3-choice response system
  • Multi-language rotation: encounters cycle through all configured target languages
  • Proximity-based NPC re-trigger (passedSet replaces timer cooldown)
  • Language HUD indicator during interactions
  • Riddle NPCs at milestone screens 20, 40, 60, 80
  • Player growth mechanic, energy bar, TTS integration

Files changed

  • packs/quest-ear/src/game/ActionScene.ts — Full rewrite with NPC corpus interaction system
  • packs/quest-ear/src/game/MainScene.ts — Action scene transition support
  • packs/quest-ear/src/data/npcCorpus.ts — NEW: 27-language NPC encounter corpus (395KB)
  • packs/quest-ear/src/data/npcCorpusTypes.ts — NEW: TypeScript types for corpus
  • packs/quest-ear/src/data/quest.json — Updated quest text
  • packs/quest-ear/manifest.json — devRevision update

Test plan

  • Install pack from local dev server or zip
  • Verify arrow key movement works in ActionScene
  • Approach NPCs — dialog appears with language-specific text
  • Use ↑↓ to select responses, Enter/Space to confirm
  • Walk away and return to re-trigger NPC interaction
  • Verify language rotates across encounters (with multiple languages configured)
  • Language label appears during interactions, hides after
  • Riddle NPCs appear at screens 20, 40, 60, 80 with 🧩 icon
  • Accept animation: item floats to player, player grows
  • Test on Android and iOS via zip distribution

🤖 Generated with Claude Code

Major expansion of the ActionScene with a full NPC interaction system:

- 27-language NPC corpus with 10 vendor types (hotdog, pizza, coffee, etc.)
- Multi-language rotation across encounters using all configured languages
- Proximity-based NPC re-trigger (walk away and return to interact again)
- Language HUD indicator showing active language during interactions
- Riddle NPCs at milestone screens (20, 40, 60, 80)
- 3-choice response panel with accept/decline/arbitrary animations
- Player growth mechanic (grows with each accepted offering)
- Energy bar tracking acceptance progress
- TTS integration for NPC dialog and player responses

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant