Skip to content

fix: hexagon coordinate view tweaks (#2250)#2913

Open
sungdark wants to merge 4 commits intoFreezingMoon:masterfrom
sungdark:bounty-2250-hexcoord-tweaks
Open

fix: hexagon coordinate view tweaks (#2250)#2913
sungdark wants to merge 4 commits intoFreezingMoon:masterfrom
sungdark:bounty-2250-hexcoord-tweaks

Conversation

@sungdark
Copy link
Copy Markdown

Summary

Implements the hexagon coordinate view tweaks described in issue #2250:

  1. Units no longer in x-ray mode — Removed the tedious x-ray effect on units when the grid view is shown (holding Shift or hovering the turn marker).

  2. Coordinates display on top of units — Added white stroke to coordinate text on ALL hexes (not just empty ones) and ensured coord text is always brought to top of the overlay group for visibility over units.

  3. Dashed hex grid overlay — Added a new dashed hex grid (at 25% opacity) for non-unit occupied hexes, displayed on top when the coordinate view is active.

Changes

  • src/utility/hexgrid.ts: Modified showGrid() to remove x-ray call and add dashedGrid visual class to empty hexes
  • src/utility/hex.ts: Modified updateStyle() to handle dashedGrid class (dashed hex at 25% opacity) and always show coordinate text with white stroke on all hexes

Testing

Build verified successfully. The coordinate view is triggered by:

  • Holding Shift key
  • Hovering the round marker (turn indicator) in the unit queue

Bounty: 7 XTR
Payment address: eB51DWp1uECrLZRLsE2cnyZUzfRWvzUzaJzkatTpQV9

bounty-scout and others added 4 commits March 26, 2026 22:41
Implements leap movement for Gumble's Goey Body ability when upgraded.
- Allows Gumble to leap over units when moving at least 2 hexagons
- Adds ignoreCreatures parameter to isWalkable and search functions
- Adds getLeapRange method in hexgrid
- Adds 'leap' movement type support in creature movement system

Fixes issue FreezingMoon#2850
- Adds Undo Move feature that allows players to undo the last movement action
- Undo is available once per round via Ctrl+Z hotkey or button click
- Saves creature state (position, health, energy, remaining move, etc.) before each move
- Restores state when undo is triggered
- Replaces Delay Turn button after a move action is performed
- Resets undo availability at the start of each new round

Implements: FreezingMoon#2704
…raded

When upgraded, Goey Body now provides leap movement (already implemented)
instead of creating a confusing trap on death that may or may not affect allies.

Fixes FreezingMoon#2850
- Remove x-ray effect on units when grid view is shown (was tedious)
- Coordinates now display on top of all units with white stroke for visibility
- Add dashed hex grid overlay at 25% opacity for non-unit occupied hexes
- Ensure coord text is always on top via bringToTop
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 27, 2026

@rhoggs-bot-test-account is attempting to deploy a commit to the FreezingMoon Team on Vercel.

A member of the Team first needs to authorize it.

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