From e7ea3b2b88e09f27ff6ff5e5ffc33c0ab6895765 Mon Sep 17 00:00:00 2001 From: Nathan Date: Sat, 12 Oct 2024 13:22:26 +0100 Subject: [PATCH] Remove drawOnBoardOpponent as rewritten --- public/board.js | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/public/board.js b/public/board.js index f36de0b..8f7eccd 100644 --- a/public/board.js +++ b/public/board.js @@ -81,7 +81,6 @@ class Board{ ctx.fillText(name, 0, 10); this.drawCardsOnBoard(); - this.drawCardsOnBoardOpponent(); this.drawDecks(); @@ -587,27 +586,6 @@ class Board{ } } - drawCardsOnBoardOpponent(){ - // OLD, being rewritten - if(true){ - for (let i = 0; i < opponentBoard.length; i++) { - - let name = 'cardOnBoardOpponent_'+(i+1); - - let cardPadding = 10; - let fill = '#'+i+i+'AA00'; - - // TODO: fix positionX, actually have some maffs - let positionX = canvas.width/2 - (cardWidth * (opponentBoard.length - (i+1)) - (cardPadding * (i+1))); - let positionY = cardHeight + 30; - let width = cardWidth; - let height = cardHeight; - - this.drawCard(opponentBoard, i, name, positionX, positionY, width, height, fill); - } - } - } - // Currently only functionality in hand playCardToBoard(index){ // Get the card data