public void renderHealth(int x, int y, int xOffset, int yOffset)
	{
		x <<= 5;
		y <<= 5;
		x = (int) (((x + xOffset) - camera.getXOffset()));
		y = (int) (((y + yOffset) - camera.getYOffset()));
		x += 2;
		y += 36;

		int barWidth = 29;
		int barHeight = 4;

		int[] bg = new int[barWidth * barHeight];
		// Render the background of the bar (The black part)
		BufferedImage imageBG = new BufferedImage(barWidth, barHeight, BufferedImage.TYPE_INT_ARGB);
		Graphics2D g = (Graphics2D) imageBG.getGraphics();
		g.setColor(Color.black);
		g.fillRect(0, 0, 1, 1);
		g.dispose();
		int col = imageBG.getRGB(0, 0);
		Arrays.fill(bg, col);

		for (int yCounter = 0; yCounter < barHeight; yCounter++)
		{
			int ya = yCounter + y;
			for (int xCounter = 0; xCounter < barWidth; xCounter++)
			{
				int xa = xCounter + x;
				if (xa < -32 || xa >= width || ya < 0 || ya >= height)
				{
					break;
				}
				if (xa < 0)
				{
					xa = 0;
				}
				pixels[xa + ya * width] = bg[xCounter + yCounter * barWidth];
			}
		}

	}