This commit is contained in:
Atsuyo-INSA 2023-12-06 10:08:57 +01:00
parent ccb763b0df
commit b910476caf

View file

@ -22,7 +22,7 @@ class Input {
let dx = this.mouseX-this.player.x;
let dy = this.mouseY-this.player.y;
let norm = Math.sqrt(dx*dx+dy*dy);
let b = new Bullet(this.player.x,this.player.x,dx/norm,dy/norm);
let b = new Bullet(this.player.x,this.player.y,dx/norm,dy/norm);
this.bullets.push(b);
this.renderer.addBullet(b);
this.network.newBullet(this.player.x,this.player.y,dx/norm,dy/norm);