Skip to content

Commit 98d4d73

Browse files
committed
Adjust positions of left/right/hand cards
1 parent 09ebf79 commit 98d4d73

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

playing-cards-2-planes/Hand.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class Hand extends CardContainer {
6666

6767
cards.forEach((card, index) => {
6868
card.x = firstCardX + index * spacingBetweenCards + card.jitterX;
69-
card.y = this._screen.height + card.jitterY - CARD_HEIGHT / 3;
69+
card.y = this._screen.height + card.jitterY - CARD_HEIGHT / 6;
7070
card.baseX = card.x;
7171
card.baseY = card.y;
7272
// Apply tilt: 0 degrees at middle, increasing by 1 degree per card away from center

playing-cards-2-planes/Left.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class Left extends CardContainer {
4848
// Use CARD_WIDTH for spacing since cards are rotated 90 degrees
4949
// Asymmetric padding: less at top, more at bottom to avoid Hand cards
5050
const minPaddingTop = CARD_WIDTH / 6;
51-
const minPaddingBottom = CARD_WIDTH / 2;
51+
const minPaddingBottom = CARD_WIDTH / 4;
5252
const maxSpacingBetweenCards = CARD_WIDTH / 3;
5353

5454
const availableHeight = this._screen.height - minPaddingTop - minPaddingBottom - CARD_WIDTH;

playing-cards-2-planes/Right.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class Right extends CardContainer {
4848
// Use CARD_WIDTH for spacing since cards are rotated 90 degrees
4949
// Asymmetric padding: less at top, more at bottom to avoid Hand cards
5050
const minPaddingTop = CARD_WIDTH / 6;
51-
const minPaddingBottom = CARD_WIDTH / 2;
51+
const minPaddingBottom = CARD_WIDTH / 4;
5252
const maxSpacingBetweenCards = CARD_WIDTH / 3;
5353

5454
const availableHeight = this._screen.height - minPaddingTop - minPaddingBottom - CARD_WIDTH;
276 KB
Loading

0 commit comments

Comments
 (0)