xxxxxxxxxx
19
// look in the side bar for the bug.js file
let fly;
function setup() {
createCanvas(400, 400);
fly = new Bug();
background(220);
}
function draw() {
fly.display();
fly.move();
}
function mousePressed(){
fly.clicked();
}