public void setup() { phone = new Phone(this); phone.fullscreen(); client = new PClient(this, "www.spore.com"); parser = new XMLParser(this); username = null; font = loadFont(FACE_PROPORTIONAL, STYLE_BOLD, SIZE_LARGE); highlight = loadImage("highlight.png"); icons = new PImage[4]; for (int i = 0; i < 4; i++) { icons[i] = loadImage("icon" + i + ".png"); } machine = new StateMachine(); machine.current = new Search(0); framerate(20); }