C++ SCHX ยท rev 4

๐Ÿƒ Card System

How cards are created, collected, stored, and rendered โ€” from cardMeta to inventory management.

Each card is a .tsx file in app/games/packs/cards/ with a cardMeta export and a CardDesign component.

{`export const cardMeta = ;`} โ€ข id: Unique identifier, must match filename (e.g. card-024.tsx) โ€ข name: Display name shown in shop and collection โ€ข rarity: One of: common, uncommon, rare, epic, legendary โ€ข emoji: Icon shown on board tiles and in lists โ€ข set: Collection set name for grouping โ€ข number: Card number within its set โ€ข artist: Creator credit displayed on card โ€ข description: Flavor text for the card Rarity System {[ , , , , , ].map(item => ( Rarity value: Shop: $ ))} Card Registry Cards are auto-detected by scanning the cards directory. The registry at data/packs/cards-registry.json caches all card metadata.

Each card has hand-coded SVG artwork in the CardDesign component. Cards feature:

Creating Cards

Rarity System

Card Registry

Card Artwork

Inventory & Collection

cardMeta Structure