Skip to content

Unify Shared SVG Texture Pipeline #788

Description

@SorraTheOrc

Summary

Use shared/core SVG texture helpers for all Main Street card rendering paths and migrate residual scene-local logic.

Player and user experience impact

  • Player experience: Card visuals remain visible and correctly occluded by overlays using Phaser layer/depth semantics.
  • Developer experience: One consistent rendering path with reduced DOM-specific maintenance overhead.

Acceptance Criteria

  • All Main Street card render locations use shared/core SVG texture helpers.
  • Residual Main Street-only rasterization logic is migrated or removed.
  • Texture keys remain deterministic across template/size/DPR combinations.
  • Card interactions (hit areas/selection) remain behaviorally unchanged.

Minimal Implementation (end-to-end slice)

  • Audit market/street/hand/event render call sites and map to shared helper APIs.
  • Replace bespoke Main Street rendering branches with shared helper invocations.
  • Preserve canonical card dimensions/aspect behavior from docs/main-street/card-dimensions.md.
  • Add coverage for hand, market, and street texture rendering paths.

Dependencies

  • Remove DOM Renderer Path

Deliverables

  • Refactored render flow
  • Updated tests
  • Code comments/API notes

References

  • Parent: Phaser-native rendering for DOM SVG card visuals (replace svgDom) (CG-0MP8YFNX4007N9ZU)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions