Add falling game objects on fail

This commit is contained in:
MatteoS
2015-11-18 22:26:03 +01:00
parent d85de23cec
commit 3e285e05fc
3 changed files with 83 additions and 47 deletions

View File

@@ -264,6 +264,10 @@ public class Slider implements GameObject {
if (sliderTime == 0)
return;
// Don't draw follow ball if already done
if (trackPosition > hitObject.getTime() + sliderTimeTotal)
return;
Vec2f c = curve.pointAt(getT(trackPosition, false));
Vec2f c2 = curve.pointAt(getT(trackPosition, false) + 0.01f);