feat: Ridge Stage Authoring mode in debugger (#96)#101
Conversation
Let Danilo tune Walk Rail points, Stage Spots, and object offsets in a session draft with live preview, sidebar controls, and copyable source snippets—without replacing the typed composition source as canonical data. Co-authored-by: Cursor <cursoragent@cursor.com>
Add camera pan/focus, marker drag, and fixed offset slider ranges so authoring controls stay usable. Remove temporary Bridge readability pocket halos from gameplay. Co-authored-by: Cursor <cursoragent@cursor.com>
There was a problem hiding this comment.
Code Review
This pull request introduces a Stage Authoring Mode to the Ridge Stage Debugger, enabling real-time, in-debugger adjustments of spatial data (such as rail points, spots, and objects) and generating copyable source snippets. Feedback on these changes highlights a few critical improvements: resolving a visibility bug in recreateBridgeCrossingVisuals where newly created bridge objects bypass active beat visibility rules, using stable serialized keys in the target selection dropdown to prevent DOM churn during dragging, and guarding against a potential crash in RidgeScene by safely accessing pointer.event?.shiftKey.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 075d26cf91
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Extract shared side-view keyboard bindings, dedupe toy-car placement, and refresh health/dupes baselines for new authoring complexity. Co-authored-by: Cursor <cursoragent@cursor.com>
Reapply bridge visibility after crossing rebuild, sync interaction targets with authored spots, stabilize authoring target dropdown keys, and guard pointer shiftKey access. Co-authored-by: Cursor <cursoragent@cursor.com>
Use placement signatures to avoid redundant bridge rebuilds during drags, extract the authoring pointer FSM, dedupe selection helpers, and drop the stale ridgeDevControls snapshot in favor of the live getter. Co-authored-by: Cursor <cursoragent@cursor.com>
Summary
?mode=ridge-stage-debugger) for tuningstageComposition.tswithout a separate map editor: session-only draft, live preview, sidebar sliders, copyable full-replacement TS snippets, and Discard Draft / Reset Selection.x/y), Stage Spots (railProgress,offset), and Stage Object offsets via click, target dropdown, or marker drag (Shift+drag on spots = offset-only).Closes #96
Test plan
?mode=ridge-stage-debugger, enable Authoring Mode, confirm player freezes and rail/spot/object markers appearnpm run typecheckandnpm testpassMade with Cursor