Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void run() {
- long t = System.currentTimeMillis();
- while (Thread.currentThread() == this.gameThread) {
- try {
- if(currentStage.hasLose()==true){
- --this.lives ;
- --this.rows;
- --this.cols;
- this.nextStage();
- gameThread.sleep(t);
- this.repaint();
- }
- else if(currentStage.hasWon() == true){
- ++this.rows;
- ++this.cols;
- this.nextStage();
- gameThread.sleep(t);
- this.repaint();
- }
- else if(currentStage.isTimeUp() == false){
- }
- else{
- }
- if(this.lives == 0){
- this.gameOver();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement