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); }
public void checkColoredDoors() { if (pinkDoor.isSatisfied() && greenDoor.isSatisfied()) { fadeout.go(); if (fadeout.isDone()) { players.clear(); gsm.currentLevel = 4; gsm.setState(GameStateManager.LOADINGSTATE); } } }
public void checkRegularDoor10() { if (door10.isSatisfied()) { fadeout.go(); if (fadeout.isDone()) { gsm.currentLevel = 11; doors.remove(door10); gsm.setState(GameStateManager.LOADINGSTATE); } } }