Skip to content

fix(court): show near-side mascot backs and mirror racket hand by facing - #24

Merged
haritabh17 merged 1 commit into
badmlabs:mainfrom
haritabh17:fix/mascot-facing
Jul 5, 2026
Merged

haritabh17 merged 1 commit into
badmlabs:mainfrom
haritabh17:fix/mascot-facing

Conversation

@haritabh17

Copy link
Copy Markdown
Collaborator

What

  • P3/P4 (near side) mascots now face away from the viewer: same figure rendered without face and front-only details (eyes, muzzle, beak, belly patch), so their backs read on screen. Ears, jersey band, capes, tails and racket stay; the number chip stays visible and reads as the jersey-back number. Applies only to mascot looks — classic round markers are unchanged.
  • Racket hand now respects facing: for front-facing players (P1/P2) the right hand shows on the screen's left and vice versa; for back-facing players (P3/P4) the right hand shows on the screen's right.

How

  • mascots.tsx: ArtProps gains an optional back flag; each mascot's head/body skips face and front-only elements when set. MascotView exposes it as facingAway.
  • PlayerMarker.tsx: new facingAway prop; mirror rule is flipped = facingAway ? isLeftHanded : !isLeftHanded (raw art holds the racket on the screen's right).
  • BadmintonCourt.tsx: team-2 markers pass facingAway.

3D pins are plain dots, and the Customize sheet tiles are neutral front-facing previews — both untouched.

Testing

  • tsc --noEmit, eslint clean; jest 85/85 pass.

@haritabh17
haritabh17 marked this pull request as ready for review July 5, 2026 18:16
@haritabh17
haritabh17 merged commit d282f31 into badmlabs:main Jul 5, 2026
2 checks passed
@haritabh17
haritabh17 deleted the fix/mascot-facing branch July 5, 2026 18:16
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