/** happy 22 toby */ import krister.Ess.*; Balloon[] balloons = new Balloon[10]; BalloonBar bar = new BalloonBar(-22); ArrayList psystems; color particleColor; int mouseDistX, lastMouseX=0, mouseDistY, lastMouseY; float xAlter, yAlter; PFont font; PImage coney, kitty, unhappy; AudioChannel pop, cheers, song, no; int hueCount=0; void setup() { size(400, 400); frameRate(100); smooth(); for(int i=0; i=20) drawWin(); else { colorMode(RGB, 255); // background(167, 211, 247); image(coney,0,0); for(int i=0; i=20) { if(mouseY<10 && mouseX>40) { song.cue(0); psystems = new ArrayList(); for(int i=0; i=0; i--) { if(balloons[i].checkOver(mouseX, mouseY)) { pop.play(1); particleColor = balloons[i].c; psystems.add(new ParticleSystem((int)(balloons[i].s*40), new Vector3D(mouseX,mouseY))); balloons[i] = new Balloon(); bar.increment(); break; } } } void stop() { Ess.stop(); super.stop(); }