xxxxxxxxxx
23
var arr = [];
function setup() {
createCanvas(400, 400);
}
function draw() {
background(42);
arr.forEach((bubble) => {
bubble.show();
bubble.startParty();
bubble.move();
});
}
function mousePressed() {
var bobTheBubble = new Bubble(random(10,30));
arr.push(bobTheBubble);
}
//move-hyperX-hyperY-startParty