Package org.sfsoft.jfighter2dx.screens

Examples of org.sfsoft.jfighter2dx.screens.GameOverScreen


          }
         
          if (enemy.getClass().getSimpleName().equals("Stone")) {
            // El usuario muere al chocar con una roca
            game.score = ship.getScore();
            game.setScreen(new GameOverScreen(game));
          }
         
          ship.hit();
          if (game.configurationManager.isSoundEnabled())
            ResourceManager.getSound("buzz").play();
         
          if (ship.getLives() == 0) {
            // El usuario muere al quedarse sin vidas
            game.score = ship.getScore();
            game.setScreen(new GameOverScreen(game));
          }
        }
      }
    }
   
View Full Code Here

TOP

Related Classes of org.sfsoft.jfighter2dx.screens.GameOverScreen

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.