public void renderBackground(Bitmap b, int x, int y) {
		if(x < b.getWidth() / 2) x = b.getWidth() / 2;
		if(y < b.getHeight() / 2) y = b.getHeight() / 2;
		if(x > width * 16 - b.getWidth() / 2) x = width * 16 - b.getWidth() / 2;
		if(y > height * 16 - b.getHeight() / 2) y = height * 16 - b.getHeight() / 2;
		
		int xmin = (x >> 4) - 9;
		int xmax = (x >> 4) + 10;
		int ymin = (y >> 4) - 6;
		int ymax = (y >> 4) + 7;
		
		for (int yy = ymin; yy < ymax; yy++) {
			if (yy < 0 || yy >= height) continue;
			for (int xx = xmin; xx < xmax; xx++) {
				if (xx < 0 || xx >= width) continue;
				getTile(xx, yy).render(b, this, xx << 4, yy << 4);
			}
		}
	}