26272829303132333435
private int[] pixels = ((DataBufferInt)image.getRaster().getDataBuffer()).getData(); public Game(){ Dimension size = new Dimension(width * scale, height * scale); setPreferredSize(size); screen = new Screen(width, height); frame = new JFrame(); }