From b65d21dca18034a566c427cf2da0bf7702f55aa7 Mon Sep 17 00:00:00 2001 From: Mees Roelofsz Date: Sun, 26 Nov 2023 16:48:40 +0100 Subject: [PATCH] fixed text --- web/game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/game.js b/web/game.js index c1e07a7..b69bf2e 100644 --- a/web/game.js +++ b/web/game.js @@ -132,7 +132,6 @@ function shoot(directionX, directionY) { // the function draw() is called every frame function draw() { textSize(10); - textAlign(LEFT); keyPressed(); life(); // draw background @@ -148,6 +147,7 @@ function draw() { circle(500, 100, 50); score(); + textAlign(LEFT); text(time, 10, 20); if (shot == false || hit == true) {