reduced player speed
This commit is contained in:
parent
6eb81fa959
commit
a877d9758d
@ -29,7 +29,8 @@ import org.wyrez.shootingstars.helper.UserDataKeys;
|
||||
*/
|
||||
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 float radius = 666f;
|
||||
@ -59,7 +60,7 @@ public class PlayerMoveControl extends BaseControl {
|
||||
|
||||
spatial.setLocalTranslation(MathHelper.calcPointOnCircle(angle, radius,
|
||||
200f + (600f * audioDataManager.getMovementData())));
|
||||
angle += MathHelper.degreeToRadian((speed / 2f + (speed * audioDataManager.getSpeedData())) * tpf);
|
||||
angle += MathHelper.degreeToRadian((speed / 4f + (speed * audioDataManager.getSpeedData())) * speedFactor * tpf);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user