p5.js says: It seems that you may have accidentally written "i" instead of "PI" (on line 22 in ator.js [/ator.js:22:41]).
Please correct it to PI if you wish to use the constant from p5.js (http://p5js.org/reference/#/p5/PI)
Quando carrego o jogo está dando esse erro.
//código do ator
let xAtor = 100;
let yAtor = 366;
let colisao = false;
function mostraAtor(){
image(imagemDoAtor, xAtor, yAtor, 30, 30);
}
function movimentaAtor(){
if (keyIsDown(UP_ARROW)){
yAtor -=3;
}
if (keyIsDown(DOWN_ARROW)){
yAtor +=3
}
}
function verificaColisao(){
//collideRectCircle(x1, y1, width1, height1, cx, cy, diameter)
for (let i = 0; i < imagemCarros.length; i = i +1);{
colisao = collideRectCircle(xCarros[i], yCarros[i], comprimentoCarro, alturaCarro, xAtor, yAtor, 15)
if (colisao){
colidiu();
}
}
}
function colidiu(){
yAtor = 366;
}