more work
This commit is contained in:
12
src/draw.ts
12
src/draw.ts
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user