Os meus carros desapareceram ao incluir o for. Aparentemente o meu código está igual ao do professor, porém não consigo mais executar.
function mostraCarro() {
for (let i = 0; i < imagemCarros.length; i = i + 1){
image(imagemCarros[i], xCarros[i], yCarros[i], 50, 40);
}
}
Erro: image() was expecting p5.Image|p5.Element for the first parameter, received an empty variable instead.
HEEEELP :O