예제 #1
0
 public void checkColoredDoors() {
   if (pinkDoor.isSatisfied() && greenDoor.isSatisfied()) {
     fadeout.go();
     if (fadeout.isDone()) {
       players.clear();
       gsm.currentLevel = 4;
       gsm.setState(GameStateManager.LOADINGSTATE);
     }
   }
 }
예제 #2
0
 public void checkRegularDoor10() {
   if (door10.isSatisfied()) {
     fadeout.go();
     if (fadeout.isDone()) {
       gsm.currentLevel = 11;
       doors.remove(door10);
       gsm.setState(GameStateManager.LOADINGSTATE);
     }
   }
 }