more work

This commit is contained in:
Dylan Pizzo
2025-01-06 22:13:53 -05:00
parent 4e79fd38a1
commit 0099624165
5 changed files with 96 additions and 15 deletions

View File

@@ -107,24 +107,20 @@ const drawStandardCard = async (
context.drawImage(getImage("card-description-focus"), 44, 1094);
// Draw the name
context.font = "75pt DominionTitle";
await renderDominionText(
context,
parse("Moonlit Scheme"),
w / 2,
220,
1100
);
await renderDominionText(context, parse(card.title), w / 2, 220, 1100);
// Draw the description
context.font = "60pt DominionText";
await renderDominionText(
context,
parse("You may play an Action card from your hand costing up to $4."),
parse(card.description),
w / 2,
1520,
1100
);
// Draw the types
// Draw the cost
context.font = "90pt DominionText";
await renderDominionText(context, parse(card.price), 210, 1940, 200);
// Draw the preview
// Draw the icon
// Draw the credit