xxxxxxxxxx
21
let song;
let car;
let x = 0;
function preload() {
song = loadSound("car sound.mp3");
}
function setup() {
createCanvas(400, 400);
song.play();
car = loadImage("purpleCar.jpeg");
}
function draw() {
background(220);
image(car, mouseX, 50, 200, 100);
x++;
}