Note: If you see any hard edge, decrease the maxVariationFactor,else disable the enableVariationBetweenCurves parameter, Default is 0.2.
If you need the curves to be fixed in every build, set the enableVariationBetweenCurves to false and set the firstCurveReferencePointOffsetFactor, Default is random.
List of reference point offset of each level.
Affects only if enableVariationBetweenCurves flag is set to true
Helps to position the reference point for each curve.
Default is random.
Determines the position of the reference point of the first curve.
This affects all the successive reference points.
Offset factor should be between 0 and 1.
Default is random.
Max Amplitude factor of the curve.
Affects how far the reference point at most be from mid point.
Offset factor should be between 0 and 1.
Default is Offset(1, 0.7), which means dx of Reference point should at most (1 * (width/2))
and dy of the Reference point should at most (0.7 * (width/2))
width/2 since the curve starts in center
Determines max offset variation between curves.
Affects only if enableVariationBetweenCurves flag is set to true.
Note: Having huge maxVariationFactor causes hard edges. Ideal value is between 0 and 1 (may vary based on the levelHeight).
Default is 0.2.
Min Amplitude factor of the curve.
Affects how far the reference point at least be from mid point.
Offset factor should be between 0 and 1.
Default is Offset(0.4, 0.3), which means dx of Reference point should at least (0.4 * (width/2))
and dy of the Reference point should at least (0.3 * (width/2))
width/2 since the curve starts in center
Determines how far the shadows should cast.
Affects only if showPathShadow flag is set to true
dx of the offset determines horizontal distance from the path,
dy of the offset determines vertical distance from the path.
+ve dx casts shadow to right and -ve dx casts shadow to the left,
+ve dy casts shadow to the bottom and -ve dy casts shadow to the top.
Default is Offset(-2, 12).