completed name ui
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user