diff options
author | elioat <elioat@tilde.institute> | 2025-01-11 09:42:29 -0500 |
---|---|---|
committer | elioat <elioat@tilde.institute> | 2025-01-11 09:42:29 -0500 |
commit | 12d8512a41315f93bf7dcc5c9091929e1727a16b (patch) | |
tree | c45ac5a72b7a7da822d128e45cf9ae6e34f0c0b6 /html | |
parent | d0c63c905ed0d18b161774d44d8cf620bc883a70 (diff) | |
download | tour-12d8512a41315f93bf7dcc5c9091929e1727a16b.tar.gz |
*
Diffstat (limited to 'html')
-rw-r--r-- | html/cards/script.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/html/cards/script.js b/html/cards/script.js index ed68e53..0f2c99a 100644 --- a/html/cards/script.js +++ b/html/cards/script.js @@ -8,7 +8,7 @@ const CARD_BACK_COLOR = '#FFCC00'; const PATTERN_SIZE = 10; const INITIAL_CARD_X = 20; const INITIAL_CARD_Y = 20; -const FONT_SIZE = '16px "pokemon-font", monospace'; +const FONT_SIZE = '34px "pokemon-font", monospace'; const CARD_BORDER_COLOR = '#000000'; const CARD_FACE_COLOR = '#FFFFFF'; @@ -71,9 +71,8 @@ const drawCardFront = card => { ctx.strokeRect(card.x, card.y, CARD_WIDTH, CARD_HEIGHT); // Draw value and suit with a retro font style - drawCardValue(card.card.value, card.x + 10, card.y + 25, 'left'); - drawCardSuit(card.card.suit, card.x + CARD_WIDTH / 2, card.y + CARD_HEIGHT / 2 + 10); - drawCardValue(card.card.value, card.x + CARD_WIDTH - 10, card.y + CARD_HEIGHT - 10, 'right'); + drawCardValue(card.card.value, card.x + 12, card.y + 42, 'left'); + drawCardSuit(card.card.suit, card.x + CARD_WIDTH / 2, card.y + CARD_HEIGHT / 2 + 20); }; const drawCardValue = (value, x, y, alignment) => { |