createCanvas(windowWidth, windowHeight);
for (var ii=0; ii<144;ii++){
bubbles[ii]= new Bubble(move, ymove);
if (move>1200) {ymove+=50; move=50}
for (var ir=0; ir< bubbles.length;ir++){
for (var i=0;i<speed;i++){
if (st2==0){ if(!keyIsPressed) {xspeed=0;yspeed=0} else {yspeed=2;xspeed=5; st2=1}}
ypaddle (xp+100, height-100, 100, 25)
ypaddle2 (xp+200, height-100, 100, 25)
text ("lives: "+lives,15,15)
if (timer>1800) {speed+=0.2; timer=0}
if (keyIsDown(37)) {xp-=7}
if (keyIsDown(39)) {xp+=7}
line(0,height,width,height);
textAlign(CENTER,CENTER);
if(mouseY>height-50){fill(999)
rect(0,height-50,width,50)
text("?️ " +rawJSON.sketch.numberOfViews+" ♡"+rawJSON.sketch.hearts.length+" ?"+rawJSON.sketch.comments.length,width/2,height-20)
if (y>height-20) {yspeed=-yspeed;st=0;if (st==0){lives--;st=1}if (lives<1){background(9874); noStroke(); fill (0);textSize(55);text("you died", width/2, height/2);noLoop()}}
if (y<10) {y=10;yspeed=-yspeed}
function ypaddle (x2, y2, w2, h2) {
if (x>x2&&y>y2&&x<x2+w2&&y<y2+h2) {xspeed=-3;yspeed=-yspeed-.1; y=y2}
function ypaddle2 (x2, y2, w2, h2) {
if (x>x2&&y>y2&&x<x2+w2&&y<y2+h2) {xspeed=3;yspeed=-yspeed-.1; y=y2}
function Bubble (x2, y2) {
if (round(random(0,10))==1 ){this.here=0} else {this.here=1}
if (this.here==0){this.fill1=0}else{this.fill1=random(255)}
if (this.here==0){this.fill2=0}else{this.fill2=random(255)}
if (this.here==0){this.fill3=0}else{this.fill3=random(255)}
this.display= function (){
fill(this.fill1, this.fill2, this.fill3)
rect (this.x,this.y,40,40)
if (x>this.x&&y>this.y&&x<this.x+40&&y<this.y+40&&this.here==1) {