deleted travel statement

This commit is contained in:
Mees Roelofsz
2024-01-16 14:46:26 +01:00
parent be03b7e7cd
commit 0faf974b84

View File

@@ -42,6 +42,7 @@ class bullet {
let hit = false; let hit = false;
let shot = true; let shot = true;
let travelled = false;
// check if the projectile has hit the player // check if the projectile has hit the player
if (dist(this.projectile.x, this.projectile.y, this.targetx, this.targety) <= this.radius) { if (dist(this.projectile.x, this.projectile.y, this.targetx, this.targety) <= this.radius) {
hit = true; hit = true;