improve some drawing

This commit is contained in:
Dylan Pizzo
2025-01-05 23:55:22 -05:00
parent 3bb0308949
commit f497057dae
4 changed files with 159 additions and 12 deletions

View File

@@ -19,9 +19,8 @@ export const Card = (props: {card: DominionCard}) => {
if (canvasElement) {
const context = canvasElement.getContext("2d");
if (context) {
console.log("loading");
await loadImages()
console.log("done loading");
await loadImages();
// await loadFonts();
drawCard(context, card);
}
}