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