public void renderSprites() {
		if(game.menu == null || game.menu.transparentMenu()){
		int px = player.x >> 4;
		int py = player.y >> 4;
		for(int x = px - 5; x < px+6; x++){
			for(int y = py-4; y < py+5; y++){
				rowSprites.addAll(entitiesInTiles[x + y * this.w]);
			}}
			
			if (rowSprites.size() > 0) {
				sortAndRender(rowSprites);
			}
			rowSprites.clear();
		
		}
		
	}