From 8aac951bf2bc189987f55556bffcd98f4e2c77d4 Mon Sep 17 00:00:00 2001 From: Mees Roelofsz Date: Tue, 16 Jan 2024 15:12:49 +0100 Subject: [PATCH] added rectangles to score tab --- web/js/Menu.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/web/js/Menu.js b/web/js/Menu.js index b70b8d2..1c8a452 100644 --- a/web/js/Menu.js +++ b/web/js/Menu.js @@ -76,7 +76,7 @@ function scoremenu() { textAlign(CENTER, CENTER); textSize(50); fill(255, 255, 255); - text("Score", width / 2, height / 4); + text("Score", width / 2, height / 5); textSize(32); text(letters[currentIndex[0]], width / 2 - 30, height / 3); text(letters[currentIndex[1]], width / 2, height / 3); @@ -97,4 +97,16 @@ function scoremenu() { else { nameDraw(3); } + + push() + stroke(4, 217, 255) + strokeWeight(5) + fill(0, 255, 0, 0) + rect(width / 4 * 3, height / 2, width / 4, height / 1.25) + rect(width / 4, height / 2, width / 4, height / 1.25) + pop() + push() + text("Your scores", width / 4, height / 6) + text("Your achievements", width / 4 * 3, height / 6) + pop() } \ No newline at end of file