Exemple #1
0
  public void update() {

    handleInput();
    if (!fadein.isDone()) {
      fadein.update();
    }
    if (!fadeout.isDone()) {
      fadeout.update();
    }
    if (gsm.getCurrentLevel() == 4) {
      ji.checkCatch(rae);
    }

    for (int i = 0; i < pictures.size(); i++) {
      Images j = pictures.get(i);
      j.update();
    }

    whatUpdate();
    bg.update();

    for (int i = 0; i < walls.size(); i++) {
      Wall w = walls.get(i);
      if (!w.removed()) {
        w.checkCollision(ji);
        w.checkCollision(rae);
      }
      if (w.shouldRemove()) {
        walls.remove(wall);
        i--;
      }
    }

    // wall.checkCollision(ji);
  }
Exemple #2
0
 public void checkColoredDoors() {
   if (pinkDoor.isSatisfied() && greenDoor.isSatisfied()) {
     fadeout.go();
     if (fadeout.isDone()) {
       players.clear();
       gsm.currentLevel = 4;
       gsm.setState(GameStateManager.LOADINGSTATE);
     }
   }
 }
Exemple #3
0
 public void checkRegularDoor10() {
   if (door10.isSatisfied()) {
     fadeout.go();
     if (fadeout.isDone()) {
       gsm.currentLevel = 11;
       doors.remove(door10);
       gsm.setState(GameStateManager.LOADINGSTATE);
     }
   }
 }