Boa tarde,
Alguém poderia me ajuda?
Após dividir os códigos entre ator.js, carro.js e imagem.js me deparei com o erro abaixo.
"p5.js says: [carro.js, line 15] image() was expecting p5.Image|p5.Element|p5.Texture for the first parameter, received an empty variable instead. If not intentional, this is often a problem with scope".
https://editor.p5js.org/Cecilia.jessica/sketches/lNv49AS2W