Added dodge banner

This commit is contained in:
sam
2024-01-19 11:02:36 +01:00
parent 0d6fdca8d5
commit 010ec74d6a
2 changed files with 14 additions and 0 deletions

View File

@@ -314,6 +314,10 @@ function draw() {
nameDraw(2); nameDraw(2);
} }
} }
if (!hasMoved && !isDead && !homescreenOn && !pausescreenOn && !scorescreenOn) {
dodgeBanner();
}
} }
async function randPatern() { async function randPatern() {
patern = random(paternArray); patern = random(paternArray);

View File

@@ -170,4 +170,14 @@ function gameOver() {
text("Main Menu", width / 2, height / 2 + height / 6); text("Main Menu", width / 2, height / 2 + height / 6);
pop(); pop();
} }
}
function dodgeBanner(){
push()
fill(255, 0, 0)
textSize(100)
textAlign(CENTER, CENTER)
text("Dodge!", width / 2, height / 2)
pop()
} }