public void renderMob(int xp, int yp, int dir, Sprite sprite){
		for(int y = 0; y < sprite.size; y++){
			int ya = y + yp;
			int ys = y;
			
			for(int x = 0; x < sprite.size; x++){
				int xa = x + xp;
				int xs = x;
				if(xa < 0 || xa >= width || ya < 0 || ya >= height) continue;
				int col = sprite.pixels[xs + ys * sprite.size];
				if(col != 0xffff00ff && col != 0xff7f007f) pixels[xa + ya * width] = col;
			}
		}
	}