Aim win1; PImage desktop; PImage intro; ArrayList AIMS = new ArrayList(); PFont font; int messageCount = 1; int closedCount = 0; int REPEAT = 3; int repeatCount = 0; ArrayList quotes = new ArrayList(); int levelStart; float TIMER = 4000; int mode = 0; int score = 0; ArrayList Texts = new ArrayList(); void setup(){ size(800, 500); addQuotes(); win1 = new Aim(random(0, width-265), random(0, height-365)); AIMS.add(win1); desktop = loadImage("desktop.png"); intro = loadImage("intro.png"); framerate(60); font = loadFont("Times-Roman-12.vlw"); }//end setup void draw(){ if(mode == 0){//-----------------------------------------------------------------------------------intro image(intro, 0, 0); }//end if if(mode == 1){//--------------------------------------------------------------------gameplay float current = millis(); float time = ((levelStart - current)+TIMER)/1000; if(time<0){ time = 0.0; mode = 2; }//end if //background(255); image(desktop, 0, 0); fill(255, 0, 0); textFont(font, 30); text(time, 10, height-25); textFont(font, 20); fill(0); text("Pedophile Advances Thwarted: "+score, width-300, height-25); drawAIMS(); paintTexts(); }//end if if(mode == 2){//-----------------------------------------------------------------failed image(desktop, 0, 0); fill(255, 0, 0); textFont(font, 20); text(0.0, 10, height-25); fill(0); text("Pedophile Advances Thwarted: "+score, width-300, height-25); drawAIMS(); paintTexts(); fill(255, 0, 0, 100); rect(0, 0, width, height); fill(0); textFont(font, 20); text("Hit Spacebar to Play Again", 150, height-25); }//end if }//end draw void drawAIMS(){ for(int i=0; i