xxxxxxxxxx
36
let b;
function setup() {
createCanvas(600, 400);
let x=random(width);
let y=random(height);
let r=random(10,40);
b=new Bubble(x,y,r);
/*for (let i=0;i<100;i++){
let x=random(width);
let y=random(height);
let r=random(10,40);
b[i]=new Bubble(x,y,r);
}*/
}
function mousePressed(){
/* let r=random(10,40);
bb=new Bubble(mouseX,mouseY,r);
b.push(bb);*/
b.clicked(mouseX,mouseY);
}
function draw() {
background(0);
b.move();
b.show();
}