use the same fade for reversearrows as circles
This commit is contained in:
parent
5be3fdf1a3
commit
b252f0ec42
|
@ -269,20 +269,20 @@ public class Slider implements GameObject {
|
||||||
|
|
||||||
// repeats
|
// repeats
|
||||||
if (curveInterval == 1.0f) {
|
if (curveInterval == 1.0f) {
|
||||||
for (int tcurRepeat = currentRepeats; tcurRepeat <= currentRepeats + 1; tcurRepeat++) {
|
for (int tcurRepeat = currentRepeats; tcurRepeat <= currentRepeats + 1 && tcurRepeat < repeats - 1; tcurRepeat++) {
|
||||||
if (hitObject.getRepeatCount() - 1 > tcurRepeat) {
|
|
||||||
Image arrow = GameImage.REVERSEARROW.getImage();
|
Image arrow = GameImage.REVERSEARROW.getImage();
|
||||||
// bouncing animation
|
// bouncing animation
|
||||||
//arrow = arrow.getScaledCopy((float) (1 + 0.2d * ((trackPosition + sliderTime * tcurRepeat) % 292) / 292));
|
//arrow = arrow.getScaledCopy((float) (1 + 0.2d * ((trackPosition + sliderTime * tcurRepeat) % 292) / 292));
|
||||||
float colorLuminance = 0.299f*color.r + 0.587f*color.g + 0.114f*color.b;
|
float colorLuminance = 0.299f*color.r + 0.587f*color.g + 0.114f*color.b;
|
||||||
Color arrowColor = colorLuminance < 0.8f ? Color.white : Color.black;
|
Color arrowColor = colorLuminance < 0.8f ? Color.white : Color.black;
|
||||||
if (tcurRepeat != currentRepeats) {
|
if (tcurRepeat == 0) {
|
||||||
if (sliderTime == 0)
|
|
||||||
continue;
|
|
||||||
float t = Math.max(getT(trackPosition, true), 0);
|
|
||||||
arrow.setAlpha((float) (t - Math.floor(t)));
|
|
||||||
} else
|
|
||||||
arrow.setAlpha(Options.isSliderSnaking() ? decorationsAlpha : 1f);
|
arrow.setAlpha(Options.isSliderSnaking() ? decorationsAlpha : 1f);
|
||||||
|
} else {
|
||||||
|
if (!sliderClickedInitial) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
arrow.setAlpha(getCircleAlphaAfterRepeat(trackPosition, tcurRepeat % 2 == 0));
|
||||||
|
}
|
||||||
if (tcurRepeat % 2 == 0) {
|
if (tcurRepeat % 2 == 0) {
|
||||||
// last circle
|
// last circle
|
||||||
arrow.setRotation(curve.getEndAngle());
|
arrow.setRotation(curve.getEndAngle());
|
||||||
|
@ -294,7 +294,6 @@ public class Slider implements GameObject {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (timeDiff >= 0) {
|
if (timeDiff >= 0) {
|
||||||
// approach circle
|
// approach circle
|
||||||
|
|
Loading…
Reference in New Issue
Block a user