Repository navigation
Hall feels alive: name tags, approach-to-talk, camera snap, dialogue thumbs, /oracle nav, keyboard fix - #92
Merged
Merged
Conversation
…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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
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
keep-hall.tsx):createdflag closes the last window a secondPhaser.Gamecould slip in via a ResizeObserver/boot race — the Phaser banner and canvas exist exactly once per page visit.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).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.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.scene.ts+keep-hall.tsx): newcenterCameraOnPlayer(), called one frame after boot and after the resize observer settles — the spawn no longer half-sits under the HUD bar.talk-sheet.tsx): painted scenes renderobject-containover a blurred, dimmed copy of the same image — no painting is cropped.talkFit: "cover"opt-in per NPC.talk-sheet.tsx): portrait-first (Oracle + Valerie have painted art); otherwise the first actor-sheet sprite frame viabackground-size: 400%on the 4x4 128x160 grids (never the raw grid blob); otherwise a pixel monogram. No invented art.keep-hall.tsx): "Oracle" now navigates to/oracleinstead of a client-side manifestation call.keep-hall.tsx+scene.ts): pause effect callssetKeyboardEnabled(...)— 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.tsimport-extension rewrites andpnpm-lock.yamlare 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 theravenstackbase found no serverFn polled at ~2-3s in hall scope:getPendingGatesevery 30s,getHallStateevery 90s — both already guarded bydocument.hidden(commits3d2aefe3,6836a25b).lib/multiplayer/p2p.ts— dormant, never instantiated by any page.mechanic/fastmcp-gateway-streamer.tsx) and the 20sFastMCPStatusBadgepollcallFastMCP— 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— passnpm test— 34/34 pass (Node 22.23.2; the default/usr/bin/node22.22.1 lacks working type-stripping and fails at load — pre-existing, unrelated)npm run build:box— passPR not to be merged; review + squash.