This commit is contained in:
sam
2024-01-17 14:07:40 +01:00
parent 838cb473f9
commit a1c5724bfa

View File

@@ -14,17 +14,11 @@ function homescreen() {
button(255, 255, 255, width / 2, height / 2, "Start Game") button(255, 255, 255, width / 2, height / 2, "Start Game")
button(255, 255, 255, width / 2, height / 2 + height / 12, "Scores") button(255, 255, 255, width / 2, height / 2 + height / 12, "Scores")
push()
stroke(4, 217, 255)
strokeWeight(5)
fill(0, 255, 0, 0)
rect(width / 5 * 4, height / 2, width / 4, height / 1.5)
pop()
//highscores rectangle
push() push()
textSize(50) textSize(50)
fill(255, 255, 255) fill(255, 255, 255)
text("Highscores", width / 5, height / 4) text("Highscores", width / 5, height / 4)
text("Controls", width / 5 * 4, height / 4)
pop() pop()
push() push()
@@ -36,18 +30,15 @@ function homescreen() {
} }
pop() pop()
//Scores rectangle
push() push()
stroke(4, 217, 255) stroke(4, 217, 255)
strokeWeight(5) strokeWeight(5)
fill(0, 255, 0, 0) fill(0, 255, 0, 0)
rect(width / 5, height / 2, width / 4, height / 1.5) rect(width / 5, height / 2, width / 4, height / 1.5)
rect(width / 5 * 4, height / 2, width / 4, height / 1.5)
pop() pop()
push()
textSize(50)
fill(255, 255, 255)
text("Controls", width / 5 * 4, height / 4)
pop()
} }
function button(r, g, b, buttonX, buttonY, buttonText) { function button(r, g, b, buttonX, buttonY, buttonText) {