示例#1
0
 public void showGameScreen() {
   gameScreen = new GameScreen(startScreen.getHeight(), startScreen.getWidth());
   switchTheScreens(startScreen, gameScreen);
   gameScreen.gameField.engine.process();
   switchTheScreens(gameScreen, startScreen);
 }
示例#2
0
 public void showStartScreen() {
   startScreen = new StartScreen(this);
   startScreen.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
   startScreen.setResizable(false);
   startScreen.setVisible(true);
 }