From 010ec74d6ab899d0096dafcd8a9544d8c155c3c5 Mon Sep 17 00:00:00 2001 From: sam Date: Fri, 19 Jan 2024 11:02:36 +0100 Subject: [PATCH] Added dodge banner --- web/game.js | 4 ++++ web/js/Menu.js | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/web/game.js b/web/game.js index 7badb85..f2221e2 100644 --- a/web/game.js +++ b/web/game.js @@ -314,6 +314,10 @@ function draw() { nameDraw(2); } } + + if (!hasMoved && !isDead && !homescreenOn && !pausescreenOn && !scorescreenOn) { + dodgeBanner(); + } } async function randPatern() { patern = random(paternArray); diff --git a/web/js/Menu.js b/web/js/Menu.js index c7f9de9..c0f0bdc 100644 --- a/web/js/Menu.js +++ b/web/js/Menu.js @@ -170,4 +170,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() } \ No newline at end of file