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:
@@ -343,6 +343,10 @@ function draw() {
|
||||
nameDraw(2);
|
||||
}
|
||||
}
|
||||
|
||||
if (!hasMoved && !isDead && !homescreenOn && !pausescreenOn && !scorescreenOn) {
|
||||
dodgeBanner();
|
||||
}
|
||||
}
|
||||
async function randPatern() {
|
||||
patern = random(paternArray);
|
||||
|
@@ -173,4 +173,14 @@ function gameOver() {
|
||||
text("Main Menu", width / 2, height / 2 + height / 6);
|
||||
pop();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function dodgeBanner(){
|
||||
push()
|
||||
fill(255, 0, 0)
|
||||
textSize(100)
|
||||
textAlign(CENTER, CENTER)
|
||||
text("Dodge!", width / 2, height / 2)
|
||||
pop()
|
||||
}
|
Reference in New Issue
Block a user