removed travelled
This commit is contained in:
@@ -41,7 +41,6 @@ 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 + radius) {
|
if (dist(this.projectile.x, this.projectile.y, this.targetx, this.targety) <= this.radius + radius) {
|
||||||
hit = true;
|
hit = true;
|
||||||
|
Reference in New Issue
Block a user