183184185186187188189190191192193
if (playerDeadTime > 60) { setMenu(new DeadMenu()); } } else { if (pendingLevelChange != 0) { setMenu(new LevelTransitionMenu(pendingLevelChange)); pendingLevelChange = 0; } } if (wonTimer > 0) { if (--wonTimer == 0) {
164165166167168169170171172173174
Game.shoot.play(); } if (checkWin()) { SCORE += 10; setMenu(new LevelTransitionMenu()); reset(); } if (GAMEOVER) { setMenu(new GameOver()); }