xxxxxxxxxx
19
let mover;
let attractor;
function setup() {
createCanvas(640, 360);
mover = new Mover(width / 2, height / 2, 6);
attractor = new Attractor(200, 200, 5);
}
function draw() {
background(51);
mover.update();
mover.display();
attractor.attract(mover);
attractor.display();
}