p5.js says: image() was expecting p5.Image|p5.Element for the first parameter, received an empty variable instead. (on line 13 in carro.js [/carro.js:13:3])
//código do carro
//carro1
let xCarro = 600;
let yCarro = 40;
//carro2
let xCarro2 = 600;
let yCarro2 = 96;
function mostraCarro(){
image(imagemCarro, xCarro, yCarro, 50, 40);
image(imagemCarro2, xCarro2, yCarro2, 50, 40);
}
function movimentaCarro(){
xCarro -= 2;
xCarro2 -= 3;
}