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(); }
public void keyReleased(KeyEvent key) { gsm.keyReleased(key.getKeyCode()); }
public void keyPressed(KeyEvent key) { gsm.keyPressed(key.getKeyCode()); }
private void draw() { gsm.draw(g); }
private void update() { gsm.update(); }