class Aim{ float x; float y; float xbutt; float ybutt; float buttWidth; String s; PImage bitmap; Aim(float x, float y){ this.x = x; this.y = y; xbutt = x+245; ybutt = y+5; buttWidth = 16; bitmap = loadImage("AIM.png"); s = (String)(quotes.get(int(random(0, quotes.size())))); }//end constructor void paint(){ image(bitmap, x, y); fill(0, 0, 255); textFont(font); text("Maf54 :", x+15, y+55); fill(0); text(s, x+55, y+55); }//end paint void mouseReleased(){ if(mouseX >= xbutt && mouseX <= xbutt+buttWidth && mouseY >= ybutt && mouseY <= ybutt+buttWidth){ score+= 1; AIMS.remove(this); closedCount++; if(closedCount == messageCount){//if all messages are closed closedCount = 0; levelStart = millis(); repeatCount++; Texts.add(new textObject(width/2, height/2+60, color(0, 0, 255), 60, "+Time")); if(repeatCount == REPEAT){ repeatCount = 0; messageCount++; Texts.add(new textObject(width/2, height/2, color(0, 255, 0), 60, "Level Up!")); }//if repeat for(int i=0; i