added rectangles to score tab

This commit is contained in:
Mees Roelofsz
2024-01-16 15:12:49 +01:00
parent d77bba94ce
commit 8aac951bf2

View File

@@ -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()
}