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