public void renderTile(float xp, float yp, float xOffset, float yOffset, Sprite sprite)
	{
		xOffset = 0;
		yOffset = 0;
		for (int y = (int) 0; y < 32; y++)
		{
			float ya = yp + y;
			for (int x = (int) 0; x < 32; x++)
			{
				float xa = x + xp;
				if ((xa + xOffset) < 0 || (xa + xOffset) >= width || (ya + yOffset) < 0 || (ya + yOffset) >= height)
					continue;
				int col = sprite.pixels[x + y * sprite.SIZE];
				if (col != 0)
				{
					pixels[(int) ((xa + xOffset) + (ya + yOffset) * width)] = col;
				}
			}
		}
	}