// Class that handles the taret class Target{ PVector location; boolean activated = false; Target(){ location = new PVector(0,0); activated = false; } // Draws the target void drawTarget(){ if(activated){ pushMatrix(); translate(location.x, location.y); fill(200); stroke(255); arc(0, 0, 20, 20, 0, TWO_PI); fill(255); noStroke(); arc(0, 0, 2, 2, 0, TWO_PI); popMatrix(); } } // Set the location for the target void setTarget(float _x, int _y){ location.x = _x; location.y = _y; activated = true; } }