Skip to content

Hall feels alive: name tags, approach-to-talk, camera snap, dialogue thumbs, /oracle nav, keyboard fix - #92

Merged
jasandroidx merged 1 commit into
ravenstackfrom
s3-hall-feel
Sep 23, 2026
Merged

jasandroidx merged 1 commit into
ravenstackfrom
s3-hall-feel

Conversation

@jasandroidx

Copy link
Copy Markdown
Owner

Implement the S3 "The Hall feels alive (game feel)" scope (findings #5 #6 #18 #19 #20 #27 #28 + talk-scene crop + keyboard capture fix).

Changes

  • boot hardening (keep-hall.tsx): created flag closes the last window a second Phaser.Game could slip in via a ResizeObserver/boot race — the Phaser banner and canvas exist exactly once per page visit.
  • Name tags (scene.ts): small pixel monospace tag above each character NPC (Raziel, Valerie, Corvid; the Oracle paints its own proverb so it's left to speak for itself).
  • Approach-and-talk (scene.ts): clicking an NPC outside the 90px talk radius now walks the player to a walkable approach tile (player-side point first, then nearest of 32 compass candidates) and opens their dialogue on arrival; manual WASD/arrow input or a wedge clear cancels it. Near-clicks and E/Space are unchanged.
  • Wedge clear (scene.ts): a click whose path is blocked by a prop/wall now clears the dest after ~500ms stuck, instead of grinding the boundary forever.
  • Camera snap (scene.ts + keep-hall.tsx): new centerCameraOnPlayer(), called one frame after boot and after the resize observer settles — the spawn no longer half-sits under the HUD bar.
  • Talk-scene vignette (talk-sheet.tsx): painted scenes render object-contain over a blurred, dimmed copy of the same image — no painting is cropped. talkFit: "cover" opt-in per NPC.
  • Dialogue thumbs (talk-sheet.tsx): portrait-first (Oracle + Valerie have painted art); otherwise the first actor-sheet sprite frame via background-size: 400% on the 4x4 128x160 grids (never the raw grid blob); otherwise a pixel monogram. No invented art.
  • Oracle button (keep-hall.tsx): "Oracle" now navigates to /oracle instead of a client-side manifestation call.
  • Keyboard capture fix (keep-hall.tsx + scene.ts): pause effect calls setKeyboardEnabled(...) — imports the fix from PR Fix game keyboard key capture during modal text input #85 (typing in a modal never fires E/Space/ESC into the game). Its .ts import-extension rewrites and pnpm-lock.yaml are intentionally excluded (npm-only repo).

Item 2 evidence (suspected ~2-3s serverFn poll — no change needed)

Exhaustive search of ui-v2/src/{components,lib,routes} on the ravenstack base found no serverFn polled at ~2-3s in hall scope:

  • Hall polls: getPendingGates every 30s, getHallState every 90s — both already guarded by document.hidden (commits 3d2aefe3, 6836a25b).
  • React-query global staleTime 15s, duty 30s — none at ~2s.
  • The 2s interval is the multiplayer WebRTC ping in lib/multiplayer/p2p.ts — dormant, never instantiated by any page.
  • The 4s Mechanic gateway streamer (mechanic/fastmcp-gateway-streamer.tsx) and the 20s FastMCPStatusBadge poll callFastMCP — out of hall scope.

Item 5 note: NPCs already have no physics bodies (players walk through them); SOLID props remain painted obstacles. Click-to-move now handles wedging via the stall-clear above.

Checks

  • npm run typecheck — pass
  • npm test — 34/34 pass (Node 22.23.2; the default /usr/bin/node 22.22.1 lacks working type-stripping and fails at load — pre-existing, unrelated)
  • npm run build:box — pass

PR not to be merged; review + squash.

…ignette contain, portrait-first dialogue thumbs, /oracle nav, keyboard-capture fix

- keep-hall boot hardens to exactly one Phaser.Game per mount and recenters the
  camera after the final resize settles.
- scene: small pixel name tags above character NPCs; clicking a far NPC walks
  the player to a walkable approach tile then opens dialogue; a wedged dest
  (prop/wall between click and player) clears after ~500ms so the player never
  grinds a boundary; boot camera snap via centerCameraOnPlayer(); new
  setKeyboardEnabled() switches Phaser keyboard while modals own focus.
- talk-sheet: talk scenes render object-contain over a blurred dimmed copy; the
  dialogue thumbnail prefers painted portraits, else the first actor-sheet sprite
  frame (CSS 400% crop on the 4x4 grids — never the raw grid), else a monogram.
- Oracle button now navigates to /oracle instead of a scene manifestation.
- Pause effect calls scene.setKeyboardEnabled (port of keep PR #85's keyboard
  capture fix; its .ts import rewrites and pnpm-lock are intentionally excluded).

No serverFn polling change: the hall polls (getPendingGates 30s, getHallState
90s) already pause on document.hidden; the 2s WebRTC ping is dormant and the 4s
Mechanic streamer is out of scope.
@vercel

vercel Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ravenstack-keep Ready Ready Preview Sep 23, 2026 3:52am UTC

Request Review

@jasandroidx
jasandroidx merged commit 0da199a into ravenstack Sep 23, 2026
4 checks passed
@jasandroidx
jasandroidx deleted the s3-hall-feel branch September 23, 2026 04:15

This branch was successfully deployed

1 active deployment
Preview — 7f7c7ecd Deployed Sep 23, 2026 by vercel[bot]
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