clear du code #6

Unito
rebillar ha unito 4 commit da dev a master 2024-01-01 18:38:52 +01:00
Mostrando solo cambiamenti del commit 9dedf15df8 - Mostra tutti i commit

Vedi file

@ -394,19 +394,20 @@ class PNJ{
}
checkCollisions(){
let colliding = false;
map0Squares.forEach((square) => {
if(square.collide(this.x,this.y,this.z))
{
return true;
colliding = true;
}
});
circles.forEach((circle) => {
map0Circles.forEach((circle) => {
if(circle.collide(this.x,this.y,this.z))
{
return true;
colliding = true;
}
});
return false;
return colliding;
}
changeDirection(){