int eggs = 15; float x[] = new float [eggs]; float y[] = new float [eggs]; float y2[] = new float [eggs]; float x2[] = new float [eggs]; void setup() { size (800, 400); smooth(); noStroke(); fill (0,0,255,100); framerate(30); } void draw() { String url1 = "http://stage.itp.nyu.edu/~cj520/netobjects/player1.txt"; String[] lines1 = loadStrings(url1); String url2 = "http://stage.itp.nyu.edu/~cj520/netobjects/player2.txt"; String[] lines2 = loadStrings(url2); // parse player1 int token1 = lines1[0].indexOf(":"); String tmpStr=lines1[0].substring(token1+1); int token2 = tmpStr.indexOf(":"); // parse the two sides of the ':' and turn into integers String String1 = tmpStr.substring(0,token2); //String String2 = tmpStr.substring(token2+1,tmpStr.length()); int Pos1= int(String1)*8; token1 = lines2[0].indexOf(":"); tmpStr=lines2[0].substring(token1+1); token2 = tmpStr.indexOf(":"); // parse the two sides of the ':' and turn into integers String String3 = tmpStr.substring(0,token2); String String4 = tmpStr.substring(token2+1,tmpStr.length()); int Pos2= int(String3)*8; background(255,111,111); //shifts all x and y values over by -1 for(int i=1; i