From 9dbb06dfb2420faded9d9687a11a02ca0f3a76c2 Mon Sep 17 00:00:00 2001 From: Nathan Date: Fri, 4 Oct 2024 22:09:49 +0100 Subject: [PATCH] FIX deck counter using old Class 'Rectangle' --- public/board.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/board.js b/public/board.js index 1d5afec..7e24484 100644 --- a/public/board.js +++ b/public/board.js @@ -61,7 +61,8 @@ class Board{ fillStyle: "#0000FF" }); clickableItems['deckSprite'].draw(); - let deckCounterSprite = new Circle({ + let deckCounterSprite = new Shape({ + shape: 'circle', name: 'deckCounter', x: canvas.width-cardWidth/5, y: canvas.height-cardHeight/5,