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()); }
private void draw() { gsm.draw(g); }