Merge branch 'main' of ssh://gitlab.fdmci.hva.nl/propedeuse-hbo-ict/onderwijs/2023-2024/out-a-se-ti/blok-2/cuujooceevii61
This commit is contained in:
BIN
web/contols.png
Normal file
BIN
web/contols.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 MiB |
@@ -10,6 +10,10 @@ function keyPressed() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function preload() {
|
||||||
|
controlsImage = loadImage('./contols.png');
|
||||||
|
}
|
||||||
|
|
||||||
function homescreen() {
|
function homescreen() {
|
||||||
textAlign(CENTER, CENTER);
|
textAlign(CENTER, CENTER);
|
||||||
textSize(70);
|
textSize(70);
|
||||||
@@ -19,13 +23,6 @@ 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()
|
|
||||||
textSize(50)
|
|
||||||
fill(255, 255, 255)
|
|
||||||
text("Highscores", width / 5, height / 4)
|
|
||||||
text("Controls", width / 5 * 4, height / 4)
|
|
||||||
pop()
|
|
||||||
|
|
||||||
push()
|
push()
|
||||||
fill(255, 255, 255)
|
fill(255, 255, 255)
|
||||||
textSize(25)
|
textSize(25)
|
||||||
@@ -42,8 +39,19 @@ function homescreen() {
|
|||||||
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)
|
rect(width / 5 * 4, height / 2, width / 4, height / 1.5)
|
||||||
|
imageMode(CENTER)
|
||||||
|
image(controlsImage, width / 5 * 4, height / 2, width / 4, height / 1.5)
|
||||||
pop()
|
pop()
|
||||||
|
|
||||||
|
push()
|
||||||
|
textSize(50)
|
||||||
|
fill(255, 255, 255)
|
||||||
|
text("Highscores", width / 5, height / 4)
|
||||||
|
fill(255, 255, 255)
|
||||||
|
stroke('black');
|
||||||
|
strokeWeight(4);
|
||||||
|
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