2
3
Fork 0
Dieser Commit ist enthalten in:
Atsuyo-INSA 2023-12-06 10:30:35 +01:00
Ursprung cfbfee45fb
Commit bd84fd7247
2 geänderte Dateien mit 3 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -105,7 +105,7 @@ class Player
function dist(A,B)
{
return sqrt((A.x-B.x)**2+(A.y-B.y)**2);
return Math.sqrt((A.x-B.x)**2+(A.y-B.y)**2);
}
class Bullet

Datei anzeigen

@ -89,9 +89,8 @@ function addBullets()
if (bulletsToAdd.length==0)
return;
bulletsToAdd.forEach((b) => {
console.log("new bullet");
bullets.push(p);
Renderer.addBullet(p);
bullets.push(b);
Renderer.addBullet(b);
});
}