public void renderTiles(Screen screen, int xOffset, int yOffset) {
		if (xOffset < 0)
			xOffset = 0;
		if (xOffset > ((width << 4) - screen.width))
			xOffset = ((width << 4) - screen.width);
		if (yOffset < 0)
			yOffset = 0;
		if (yOffset > ((height << 4) - screen.height))
			yOffset = ((height << 4) - screen.height);

		screen.setOffset(xOffset, yOffset);

		for (int y = 0; y < height; y++) {
			for (int x = 0; x < width; x++) {
				getTile(x, y).render(screen, this, x << 4, y << 4);
			}
		}
	}