centered pause buttons

This commit is contained in:
Mees Roelofsz
2024-01-12 09:32:36 +01:00
parent b13007390c
commit 78d077e7d0

View File

@@ -77,6 +77,9 @@ function button(r, g, b, buttonX, buttonY, buttonWidth, buttonHeight, buttonText
function pauseMenu(){
textAlign(CENTER);
button(255, 255, 255, width / 2 - 90, height / 2, 200, 40, "Resume")
button(255, 255, 255, width / 2 - 90, height / 2 + 50, 200, 40, "Main Menu")
textSize(50);
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");
}