This commit is contained in:
fd
2015-04-12 13:19:33 -04:00
parent 12e70002d6
commit e792c3cae6
10 changed files with 112 additions and 104 deletions

View File

@@ -32,7 +32,9 @@ import org.newdawn.slick.Image;
*/
public abstract class Curve {
protected static float CURVE_POINTS_SEPERATION = 50;
/** Points generated along the curve should be spaced this much apart*/
protected static float CURVE_POINTS_SEPERATION = 5;
/** The associated OsuHitObject. */
protected OsuHitObject hitObject;
@@ -56,7 +58,6 @@ public abstract class Curve {
this.y = hitObject.getScaledY();
this.sliderX = hitObject.getScaledSliderX();
this.sliderY = hitObject.getScaledSliderY();
CURVE_POINTS_SEPERATION = 5;
}
/**
@@ -71,8 +72,7 @@ public abstract class Curve {
* @param color the color filter
*/
public void draw(Color color) {
if ( curve == null){
System.out.println("draw curve"+this);
if (curve == null){
return;
}
Image hitCircle = GameImage.HITCIRCLE.getImage();