/* An important question is ultimately what information this program needs I am in favor of giving it complete information in case... Possible serial codes: 2 byte: PLAYchange: [100,0], PLAYfinger: [Finger, Vel] MENUchange: [101,0], MENUfinger: [Finger, 101] (unlock/lock) [Finger, 0 ] (change) 3 byte: PLAYchange: [100,0,0] */ Finger[] f= new Finger[10]; PFont font; Smsg serialmsg; //Global Variables boolean Play; //true if in Play mode false if in Menu mode int playmsg=64; int menumsg=61; void setup() { size(500,500); background(0); smooth(); //LOAD font font = loadFont("ArialMT-48.vlw"); textFont(font, 12); //INITIALIZE Fingers initializeF(); serialmsg= new Smsg(0,0,0); Play=true; } void draw() { background(0); renderF(); resetFvel(); }