public GameBoyPrinter() {
		window = new GameBoyPrinterWindow("Game Boy Printer", IMAGE_WIDTH, IMAGE_HEIGHT);

		//window.show();

		bufferFillPos = 0;
		bufferEmptyPos = 0;

		dataSize = 640;

		for (int r = 0; r < IMAGE_WIDTH * IMAGE_HEIGHT; r++) {
			imageData[r] = 0xFF000000;
		}
		source = new MemoryImageSource(IMAGE_WIDTH, IMAGE_HEIGHT, new DirectColorModel(32, 0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000),
				imageData, 0, IMAGE_WIDTH);
		source.setAnimated(true);
		source.newPixels();
		image = window.createImage(source);

		window.setImage(image);

		tileX = 0;
		tileY = 1;
	}