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

		screen.setOffset(xOffset, yOffset);

		for (int y = (yOffset >> 3); y < (yOffset + screen.height >> 3)+1; y++) {
			for (int x = (xOffset >> 3); x < (xOffset + screen.width >> 3)+1; x++) {
				getTile(x,y).render(screen,this,x<<3,y<<3);
			}
		}
	}