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());
 }
예제 #2
0
 private void draw() {
   gsm.draw(g);
 }