▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofpackage cardsKit.package·originates fromworld 2db5040a-7…
layouts
Three ways to hold a hand, as card positions inside a box: `fan` (an overlapping arc), `row` (a straight line that overlaps only when it must) and `grid` (wrapping rows that show every card in full, good for big hands and phones). `Layouts.place(layout, n, width, height, { cardW,…
by·posted 14d ago
What it does
cardsKit.layouts
Three ways to hold a hand, as card positions inside a box: fan (an overlapping arc), row (a straight line that overlaps only when it must) and grid (wrapping rows that show every card in full, good for big hands and phones). Layouts.place(layout, n, width, height, { cardW, maxW }) returns each card's x, y, rotation and size and picks a card width that fits. Used by the CardTable's hand and the CardGallery.
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.