Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. public void run() {
  2. long t = System.currentTimeMillis();
  3. while (Thread.currentThread() == this.gameThread) {
  4. try {
  5. if(currentStage.hasLose()==true){
  6. --this.lives ;
  7. --this.rows;
  8. --this.cols;
  9. this.nextStage();
  10. gameThread.sleep(t);
  11. this.repaint();
  12. }
  13. else if(currentStage.hasWon() == true){
  14. ++this.rows;
  15. ++this.cols;
  16. this.nextStage();
  17. gameThread.sleep(t);
  18. this.repaint();
  19. }
  20. else if(currentStage.isTimeUp() == false){
  21.  
  22. }
  23. else{
  24.  
  25. }
  26.  
  27. if(this.lives == 0){
  28. this.gameOver();
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement