Skip to content

feat/ Nurimaze: Add auxiliary line drawing and UX improvements#692

Closed
mashinosatoshi wants to merge 3 commits intorobx:mainfrom
mashinosatoshi:feat/nurimaze_solve_with_supportline
Closed

feat/ Nurimaze: Add auxiliary line drawing and UX improvements#692
mashinosatoshi wants to merge 3 commits intorobx:mainfrom
mashinosatoshi:feat/nurimaze_solve_with_supportline

Conversation

@mashinosatoshi
Copy link
Copy Markdown
Contributor

Nurimaze: Add auxiliary line drawing and UX improvements

This pull request introduces auxiliary line drawing functionality for the play mode of Nurimaze, along with several UI/UX refinements to enhance the solving experience.

Key Changes

1. Mouse Input Logic (mouseinput_auto)

  • Drag-to-draw utility: Users can now draw auxiliary lines (connecting cell centers) by dragging from any cell.
  • Toggle marker on click: Clicking (mousedown and mouseup in the same cell) still toggles the "unshaded" marker for the entire room, preserving existing behavior.
  • Accurate start detection: Improved the drag detection logic to ensure the initial cell of a drag is correctly included in the line segment.

2. Automatic Logic & Constraints (Border.posthook)

  • Automatic room clearing: When an auxiliary line is drawn across a border, the adjacent rooms are automatically marked as "unshaded" (clearing any black shading and setting qsub=1).
  • Shading restriction: Added a safeguard to prevent rooms containing auxiliary lines from being accidentally shaded as walls.

3. Graphic Enhancements (Graphic)

  • Layering adjustment: Modified the drawing order so that lines are rendered behind Start (S), Goal (G), Circle, and Triangle markers. This ensures lines appear to originate from beneath the markers.
  • Subtle visual style: Changed the auxiliary line color to a soft grey (rgb(160, 160, 160)) to distinguish it from definitive puzzle elements.

Purpose

The addition of auxiliary lines allows solvers to visualize their hypothesized path from Start to Goal. These changes aim to make the solving process more intuitive and reduce accidental mis-shading in Nurimaze puzzles.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 18, 2026

@mashinosatoshi is attempting to deploy a commit to the robx's projects Team on Vercel.

A member of the Team first needs to authorize it.

@x-sheep x-sheep self-requested a review March 18, 2026 16:13
@x-sheep x-sheep added the enhancement New feature or request label Mar 18, 2026
@x-sheep
Copy link
Copy Markdown
Collaborator

x-sheep commented Mar 25, 2026

Thank you for the pull request, but I don't think this is a good enhancement. The UX changes make it exceedingly difficult to shade multiple blocks in one motion, and this is still a shading genre at heart. I originally introduced the line drawing to only mark the path from Start to Goal, but this is not enough to finish a puzzle.

@x-sheep x-sheep closed this Mar 25, 2026
@mashinosatoshi mashinosatoshi deleted the feat/nurimaze_solve_with_supportline branch March 25, 2026 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants