1.3 KiB
1.3 KiB
title, status
| title | status |
|---|---|
| Battlefield Cutout Style & Tapped Stack | Completed |
Objectives
- Use "Cutout" (Art Crop) style for cards on the battlefield to save space.
- Implement a stacked view for Tapped Lands on the left of the lands area.
- Rotate tapped cards by 45 degrees instead of 90 degrees.
Implementation Details
-
CardComponent:
- Added
viewModeprop ('normal' | 'cutout'). - If
viewMode='cutout', usescard.definition.image_uris.art_cropas src. - Changed rotation class from
rotate-90torotate-45.
- Added
-
GameView:
- Updated battlefield rendering to pass
viewMode="cutout"to all battlefield cards (Creatures, Artifacts/Enchantments, Lands). - Updated card sizing on battlefield to
w-28 h-auto aspect-[4/3](approx 112x84px). - Split Lands zone into
tappedLandsanduntappedLands. - Implemented a "stack" layout for
tappedLandson the left side of the lands container, using absolute positioning within a relative container to create a pile effect.
- Updated battlefield rendering to pass
Outcome
Battlefield now uses significantly less vertical space per card row. Tapped lands are grouped neatly, reducing horizontal sprawl. Tapped cards are clearly distinct but take up less bounding box width due to 45 degree rotation compared to 90 degree (depending on aspect ratio, but arguably cleaner visual for "tapped").