xxxxxxxxxx
37
var bubbles = [];
var img;
function preload() {
img = loadImage('bubble.png');
zeep = loadImage('zeep.png');
}
function setup() {
createCanvas(windowWidth, windowHeight);
image(zeep,50, 150);
imageMode(CENTER);
let s = 'Wrijf zo snel mogelijk over de zeep, zodat je handjes goed proper zijn. Hoe meer bubbels, hoe beter!';
fill(0);
textSize(25);
textFont('Helvetica');
fill(50);
textAlign(CENTER)
text(s,20,50, 1000, 200);
}
function touchMoved() {
image(img, mouseX- img.width /2, mouseY- img.height / 2, img.width / 7, img.height / 7 );
return false;
}