private void select() {
   if (selection == YES) {
     System.exit(1);
   } else {
     gsm.setCurrentState(GameStateManager.MENUSTATE);
   }
 }
 public void paint(Graphics g) {
   BufferedImage backBuffer = new BufferedImage(880, 800, BufferedImage.TYPE_INT_RGB);
   Graphics2D g2 = (Graphics2D) backBuffer.getGraphics();
   gsm.draw(g2);
   g.drawImage(backBuffer, 0, 0, game.getWindow());
 }
 public void update() {
   gsm.update();
 }
Пример #4
0
 public void keyReleased(KeyEvent key) {
   gsm.keyReleased(key.getKeyCode());
 }
Пример #5
0
 public void keyPressed(KeyEvent key) {
   gsm.keyPressed(key.getKeyCode());
 }
Пример #6
0
 private void draw() {
   gsm.draw(g);
 }
Пример #7
0
 private void update() {
   gsm.update();
 }