cleanup
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user