Skip to content

Lay a dirt courtyard and gate hex tiles to selection #5

Summary

  • Replaces the stone platform and permanently drawn hex tiles with a packed-dirt courtyard floor built from the dirt ground texture, a bump map, and a procedural multi-octave normal map for real surface relief.
  • Adds close-range detail on top of the dirt: a tiled grit/chip overlay, a stain pass with wall-shade gradients, damp and dry patches, hairline cracks, boot trails, and two cart ruts running in from the gate.
  • Scatters seeded set dressing across the yard: ~320 grit pebbles biased toward the edges, 40 larger half-buried blocks along the wall footings, ~160 straw and twig pieces, and 70 dry weed clumps on crossed billboards growing along the wall bases.
  • All procedural detail uses a small seeded PRNG, so the layout is identical on every load.
  • Hex tiles are now an overlay rather than the floor: they only appear while a heroine is selected on the player's turn, using a painted hex texture with distinct colours and opacities for hover, targets, reachable cells, and the current cell.
  • Clears tile highlights when there is no active battle, so stale overlays cannot linger on non-battle screens.

Testing

  • bun run check — all game modules bundle cleanly.
  • bun test — 41 passing, 0 failing across 2 files.
  • bun scripts/shot.js battle:1 — battle renders with clean diagnostics and no console errors.
  • git diff --check — no whitespace errors.
  • Manual: confirmed the courtyard reads as dirt with visible clods, grit, weeds, and debris at both default and 2x screenshot scale, and that hex tiles stay hidden until a unit is selected.

Sign in to comment on this pull request.