reduced player speed

This commit is contained in:
Raybz@Raybz 2013-06-14 10:52:42 +02:00
parent 6eb81fa959
commit a877d9758d

View File

@ -29,7 +29,8 @@ import org.wyrez.shootingstars.helper.UserDataKeys;
*/ */
public class PlayerMoveControl extends BaseControl { public class PlayerMoveControl extends BaseControl {
private static final float BPM_TO_SPEED_FACTOR = 1f / 8f; private static final float BPM_TO_SPEED_FACTOR = 1f / 4f;
private static final float speedFactor = 0.25f;
/**/ /**/
private AudioDataManager audioDataManager; private AudioDataManager audioDataManager;
private float radius = 666f; private float radius = 666f;
@ -59,7 +60,7 @@ public class PlayerMoveControl extends BaseControl {
spatial.setLocalTranslation(MathHelper.calcPointOnCircle(angle, radius, spatial.setLocalTranslation(MathHelper.calcPointOnCircle(angle, radius,
200f + (600f * audioDataManager.getMovementData()))); 200f + (600f * audioDataManager.getMovementData())));
angle += MathHelper.degreeToRadian((speed / 2f + (speed * audioDataManager.getSpeedData())) * tpf); angle += MathHelper.degreeToRadian((speed / 4f + (speed * audioDataManager.getSpeedData())) * speedFactor * tpf);
} }
} }