public void render(Screen screen, int xScroll, int yScroll) {
		int xOffset = xScroll >> 4;
		int yOffset = yScroll >> 4;
		int width = (screen.width + 15) >> 4;
		int height = (screen.height + 15) >> 4;

		screen.setOffsets(xOffset, yOffset);

		for (int yt = yOffset; yt <= height + yOffset; yt++) {
			for (int xt = xOffset; xt <= width + xOffset; xt++) {
				Tile t = getTile(xt, yt);
				t.render(screen, xt, yt);
				for (Entity e : entities) {
					e.render(screen);
				}
			}
		}
		screen.setOffsets(0, 0);
	}