public void renderMob(int x, int y, float xOffset, float yOffset, Sprite sprite)
	{
		//if (yOffset > 0 || yOffset < 0) return;
		x = (int) (convertMapX(x));
		y = (int) (convertMapY(y));
		// xOffset = 0;
		// yOffset = 0;
		xOffset *= -1;
		yOffset *= -1;
		for (int yCounter = 0; yCounter < 32; yCounter++)
		{
			int ya = yCounter + y + (int) yOffset;
			for (int xCounter = 0; xCounter < 32; xCounter++)
			{
				int xa = xCounter + x + (int) xOffset;
				if (xa < -32 || xa >= width || ya < 0 || ya >= height) break;

				if (xa < 0)
				{
					xa = 0;
				}
				int col = sprite.pixels[xCounter + yCounter * 32];
				if (col != 0)
				{
					pixels[xa + ya * width] = col;
				}
			}
		}
	}