public void renderSprite(int xp, int yp, Sprite sprite, boolean fixed)
	{
		if(fixed)
		{
			xp -= xOffset;
			yp -= yOffset;
		}
		for(int y = 0; y < sprite.getHeight(); y++)
		{
			int ya = y + yp;
			for(int x = 0; x < sprite.getWidth(); x++)
			{
				int xa = x + xp;
				if(xa < 0 || xa >= width || ya < 0 || ya >= height) { continue; }
	
				int col = sprite.pixels[x + y * sprite.getWidth()];
				if(col != ALPHA_COL) pixels[xa + ya * width] = col;}
		}
	}