From 0faf974b843ac90961da382c1b2608ff7083b7ff Mon Sep 17 00:00:00 2001 From: Mees Roelofsz Date: Tue, 16 Jan 2024 14:46:26 +0100 Subject: [PATCH] deleted travel statement --- web/js/basicbullet.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web/js/basicbullet.js b/web/js/basicbullet.js index 320cc5f..5cd6b9c 100644 --- a/web/js/basicbullet.js +++ b/web/js/basicbullet.js @@ -42,6 +42,7 @@ class bullet { let hit = false; let shot = true; + let travelled = false; // check if the projectile has hit the player if (dist(this.projectile.x, this.projectile.y, this.targetx, this.targety) <= this.radius) { hit = true;