float a = 1 ; float x = 200 ; float y = 200 ; float c = 10 ; float d = 10; float count = 0; PFont f; PFont g; float rate = 1; float pointer = -10; String message = str(x)+str(y) ; void setup() { size (500,400); smooth(); background(0); stroke (255,100,100,50); fill(255,100,100,50); f = createFont( " Monaco " ,42,true); g = createFont( " New York " ,120,true); textFont(f); text("click to start",20,70); text ("spot the first drop",20,120); text ("mouse over",20,170); noLoop(); textFont(g); text("BL0 D",120,350); } void draw() { frameRate (rate); // String message = str(int(x))+"-"+int(abs(y)) ; stroke (200,0,0,255); fill(20,0,0,255); textFont(f); // text(message,10,30); // score fill (255,100,100,50); textFont(g); text(int(count),300,350); stroke (255,0,0,2); fill(255,0,0,2); ellipse (x, y, 10,10); stroke (255,0,0,c); fill(255,0,0,d); ellipse(random(120,470),random(1,450),a,a); a = a +1; rate = rate +1 ; stroke (255,255,255,20); fill(255,255,255,10); ellipse(mouseX,mouseY,abs(pointer),abs(pointer)); pointer = pointer + 1; if (pointer == 20) {pointer = -20;} if (mouseY > (y-10) && mouseY< (y+10) && mouseX > (x-10) && mouseX < (x+10)) { background(0); x = random(20,460); y = random(20,350); a = 1 ; c = c + 3; d = d + 3; count = count +1 ; rate = 1; } if (a > 400) { textFont(f); fill(255,255,255,200); text("you ran out of blood",20,200); noLoop(); } } void mousePressed() { loop(); }