centered pause buttons
This commit is contained in:
@@ -77,6 +77,9 @@ function button(r, g, b, buttonX, buttonY, buttonWidth, buttonHeight, buttonText
|
|||||||
|
|
||||||
function pauseMenu(){
|
function pauseMenu(){
|
||||||
textAlign(CENTER);
|
textAlign(CENTER);
|
||||||
button(255, 255, 255, width / 2 - 90, height / 2, 200, 40, "Resume")
|
textSize(50);
|
||||||
button(255, 255, 255, width / 2 - 90, height / 2 + 50, 200, 40, "Main Menu")
|
fill(255, 255, 255);
|
||||||
|
text("Paused", width / 2, height / 2 - 100);
|
||||||
|
button(255, 255, 255, width / 2 - 100, height / 2, 200, 40, "Resume");
|
||||||
|
button(255, 255, 255, width / 2 - 100, height / 2 + 50, 200, 40, "Main Menu");
|
||||||
}
|
}
|
Reference in New Issue
Block a user