From 194bafa7550d59d22f6879553523e00ee4ba1163 Mon Sep 17 00:00:00 2001 From: zm343 <2639-zm343@users.noreply.gitlab.cci.drexel.edu> Date: Sat, 24 Aug 2024 16:35:18 +0000 Subject: [PATCH] Added banana color --- public/game.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/public/game.html b/public/game.html index 397b0c8..80e9490 100644 --- a/public/game.html +++ b/public/game.html @@ -80,6 +80,16 @@ ); ctx.fillStyle = "white"; } + if (board[i][j].type === 4) { + ctx.fillStyle = "yellow"; + ctx.fillRect( + j * widthStep + 1, + i * heightStep + 1, + widthStep - 2, + heightStep - 2, + ); + ctx.fillStyle = "white"; + } } } }; -- GitLab