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); }
public void libraryEvent(Object library, int event, Object data) { if (machine.libraryEvent(library, event, data) == null) { exit(); } }
public void keyPressed() { if (machine.keyPressed() == null) { exit(); } }
public void draw() { if (machine.draw() == null) { exit(); } }