about summary refs log tree commit diff stats
path: root/html/cards/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'html/cards/script.js')
-rw-r--r--html/cards/script.js7
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) => {