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 + 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()
textSize(50)
fill(255, 255, 255)
text("Highscores", width / 5, height / 4)
text("Controls", width / 5 * 4, height / 4)
pop()
push()
@@ -36,18 +30,15 @@ function homescreen() {
}
pop()
//Scores rectangle
push()
stroke(4, 217, 255)
strokeWeight(5)
fill(0, 255, 0, 0)
rect(width / 5, height / 2, width / 4, height / 1.5)
rect(width / 5 * 4, height / 2, width / 4, height / 1.5)
pop()
push()
textSize(50)
fill(255, 255, 255)
text("Controls", width / 5 * 4, height / 4)
pop()
}
function button(r, g, b, buttonX, buttonY, buttonText) {