Skip to content

Tint hand cards by heroine and run the west wall into a village #11

Summary

  • The hand now takes its colours from the acting heroine: heroinePalette() converts the unit's 0xRRGGBB colour to --hero-h/-s/-l and a matching --hero-icon rotation, set inline per card with a gold fallback when no unit is active.
  • Card border, inner frame, hover/selected glow, art plate, cost gem, name and rules text all read from those variables, so switching heroines restyles the whole hand.
  • The battlefield floor is one continuous dirt field instead of a raised slab with a dark panel; a single curtain wall stands behind the heroines with the gatehouse at their backs.
  • That wall now runs well past the arena into the fog, with varied tower heights, rotations and scales, extra buttresses, weathered parapet gaps and a subtle per-instance stone tone.
  • A village sits outside the west wall: six individually sized, painted and weathered houses with different roof pitches, plus trees, shrubs, barrels, crates, fencing, a market stall and warm lantern glows.
  • Weeds scatter across the margins rather than lining the old slab, and the shade veil feathers from the field into full darkness so the lit ground meets the black without a seam.

Testing

  • bun run check — all game modules bundle cleanly.
  • bun test — 41 pass, 0 fail.
  • bun scripts/shot.js battle:1 with the wall in place — screenshot renders with clean diagnostics.
  • bun scripts/shot.js menu — menu scene still renders with clean diagnostics.
  • Manually compared cropped battle screenshots across the wall iterations to confirm the curtain reads as continuous and the village houses stay visually distinct.
  • Not run: manual play in a browser to confirm the card palette updates on every heroine swap.

Sign in to comment on this pull request.