completed name ui

This commit is contained in:
Mees Roelofsz
2024-01-16 15:05:54 +01:00
parent ed670dc361
commit d77bba94ce
2 changed files with 76 additions and 64 deletions

View File

@@ -73,17 +73,28 @@ function pauseMenu() {
}
function scoremenu() {
textAlign(CENTER);
textAlign(CENTER, CENTER);
textSize(50);
fill(255, 255, 255);
text("Score", width / 2, height / 2 - height / 6);
text("Score", width / 2, height / 4);
textSize(32);
text(letters[currentIndex[0]], width / 2 - 30, height / 2);
text(letters[currentIndex[1]], width / 2, height / 2);
text(letters[currentIndex[2]], width / 2 + 30, height / 2);
text(letters[currentIndex[0]], width / 2 - 30, height / 3);
text(letters[currentIndex[1]], width / 2, height / 3);
text(letters[currentIndex[2]], width / 2 + 30, height / 3);
if (scorescreenOn && keyReleasedFlag) {
nameSubmit();
}
nameDraw();
if (entered) {
push()
stroke(205, 205, 205)
strokeWeight(2)
fill(0, 0, 0, 0)
rect(width / 2, height / 3, 90, 40)
pop()
}
else {
nameDraw(3);
}
}