Added dodge banner
This commit is contained in:
@@ -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);
|
||||||
|
@@ -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()
|
||||||
}
|
}
|
Reference in New Issue
Block a user