From ca796124f15616506f02a6357c063ec0b005e46a Mon Sep 17 00:00:00 2001 From: Mees Roelofsz Date: Fri, 19 Jan 2024 09:14:32 +0100 Subject: [PATCH] added title and changed buttontext --- web/js/Menu.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/web/js/Menu.js b/web/js/Menu.js index a229ee3..7fed873 100644 --- a/web/js/Menu.js +++ b/web/js/Menu.js @@ -11,7 +11,11 @@ function keyPressed() { } function homescreen() { - textAlign(CENTER); + textAlign(CENTER, CENTER); + textSize(70); + fill(100, 255, 100); + text("Slime\nSymphony", width / 2, height / 4); + button(255, 255, 255, width / 2, height / 2, "Start Game") button(255, 255, 255, width / 2, height / 2 + height / 12, "Scores") @@ -50,8 +54,7 @@ function button(r, g, b, buttonX, buttonY, buttonText) { textSize(25) fill(r, g, b) textAlign(CENTER); - text(buttonText, buttonX, buttonY + buttonHeight / 4) - + text(buttonText, buttonX, buttonY) pop() }