Add carry-time drop-location preview marker (playtest feedback) #44

Merged
scruffydude merged 1 commit from task/43-drop-preview into main 2026-10-03 19:26:16 -04:00
Owner

Closes #43

While holding an item, a translucent marker now appears at the exact slot it will snap into on its matching stand, hidden whenever nothing is held. stand.gd creates the marker in code (same pattern as item.gd's set_tint() material) and reuses item.gd's slot-offset formula so the preview always matches where try_snap() will actually place the item.

Validated headlessly via a disposable env-var-gated hook in area.gd (reverted before commit): picking up a sword with none placed yet previews slot 0; after two swords are placed, picking up a third previews slot 2; dropping hides the marker in both cases. The marker's actual visual appearance can't be judged from this sandbox - needs a real playtest look.

🤖 Generated with Claude Code

Closes #43 While holding an item, a translucent marker now appears at the exact slot it will snap into on its matching stand, hidden whenever nothing is held. stand.gd creates the marker in code (same pattern as item.gd's set_tint() material) and reuses item.gd's slot-offset formula so the preview always matches where try_snap() will actually place the item. Validated headlessly via a disposable env-var-gated hook in area.gd (reverted before commit): picking up a sword with none placed yet previews slot 0; after two swords are placed, picking up a third previews slot 2; dropping hides the marker in both cases. The marker's actual visual appearance can't be judged from this sandbox - needs a real playtest look. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Stand signage and item sets still leave it unclear exactly where a
carried item should be dropped, especially within a set's row. While
holding an item, a translucent marker now appears at the exact slot
it will snap into on its matching stand, hidden whenever nothing is
held.

stand.gd creates the marker in code (same pattern as item.gd's
set_tint() material) rather than hand-authoring it per-stand in
armory.tscn, and reuses item.gd's slot-offset formula so the preview
always matches where try_snap() will actually place the item.
item.gd's _placed_sibling_count() is renamed to the public
placed_sibling_count() so player.gd can reuse the same slot math
instead of duplicating it.

Validated headlessly via a disposable env-var-gated hook in area.gd
(reverted before this commit): picking up a sword with none placed
yet previews slot 0 (-1.575, matching the formula); after two swords
are actually placed, picking up a third previews slot 2 (-0.875);
dropping in either case hides the marker again.

Closes #43

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
scruffydude deleted branch task/43-drop-preview 2026-10-03 19:26:17 -04:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
scruffydude/project-awry!44
No description provided.