public void render(int xp, int yp, int xb, int yb, int size, int scale, SpriteSheet sheet){
		int sheetSize = sheet.SIZE;
		for(int y = 0; y < size * scale; y++){
			int ya = y + yp;
			for(int x = 0; x < size * scale; x++){
				int xa = x + xp;
				if(xa < -sheetSize || xa >= width || ya < 0 || ya >= height) break;
				if(xa < 0) xa = 0;
				int xs = x / scale + (xb * (size));
				int ys = y / scale + (yb * (size));
				int col = sheet.pixels[xs + ys * sheetSize];
				if(col != 0xffff00ff && col != 0xff7f007f) pixels[xa + ya * width] = col;
			}
		}
	}