Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (currentStage.hasWon()) // this stage win
- {
- this.rows++;
- this.cols++;
- this.nextStage();
- } else if (currentStage.hasLose()) // this stage lose
- {
- this.lives--;
- int round = 0;
- while (round < 5) {
- currentStage.robotSummonAnimationFrame();
- Thread.sleep(100);
- round++;
- }
- this.remove(currentStage);
- this.rows--;
- this.cols--;
- if (lives > 0)
- this.nextStage(); // if there is still another stage
- } else if (!currentStage.isTimeUp()) {
- currentStage.timeRunning();
- }
- if (lives < 0) {
- this.gameOver();
- }
- this.repaint();
- Thread.sleep(100);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement