Implement circleslowsliders

This commit is contained in:
yugecin
2016-10-01 14:46:39 +02:00
parent 54fa335492
commit 9d6c413eb7
4 changed files with 19 additions and 7 deletions

View File

@@ -115,6 +115,8 @@ public class Slider extends GameObject {
public static double bpm;
public float pixelLength;
/**
* Initializes the Slider data type with images and dimensions.
* @param container the game container
@@ -164,6 +166,8 @@ public class Slider extends GameObject {
mirrorColor = Dancer.colorMirrorOverride.getColor(comboColorIndex);
updatePosition();
this.pixelLength = hitObject.getPixelLength();
// slider time calculations
this.sliderTime = hitObject.getSliderTime(sliderMultiplier, game.getBeatLength());
this.sliderTimeTotal = sliderTime * hitObject.getRepeatCount();