Follow-up to #71.
- Fixed a major bug where two hit result calculations were being performed for each slider. - Fixed a bug where hit circles/sliders were being drawn for a miss. - Sliders now only expand when held to the end (as in osu!). - Use the track position as the hit result start time for circles (instead of the object time). - Added a 'color' parameter to Curve.draw(), rather than keeping an extra reference to the slider Color object. - Renamed HitResultType enum to HitObjectType, and moved it into GameData. - Removed some overloaded methods (not really necessary...). - Other style changes. Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
@@ -609,7 +609,7 @@ public class Utils {
|
||||
}
|
||||
|
||||
/**
|
||||
* Cubic ease out function
|
||||
* Cubic ease out function.
|
||||
* @param t the current time
|
||||
* @param a the starting position
|
||||
* @param b the finishing position
|
||||
@@ -621,7 +621,7 @@ public class Utils {
|
||||
}
|
||||
|
||||
/**
|
||||
* Fake bounce ease function
|
||||
* Fake bounce ease function.
|
||||
* @param t the current time
|
||||
* @param a the starting position
|
||||
* @param b the finishing position
|
||||
@@ -631,6 +631,6 @@ public class Utils {
|
||||
public static float easeBounce(float t, float a, float b, float d) {
|
||||
if (t < d / 2)
|
||||
return easeOut(t, a, b, d);
|
||||
return easeOut(d-t, a, b, d);
|
||||
return easeOut(d - t, a, b, d);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user