Refactor speed-related methods to support 1/s unit rather than 1/frame
This commit is contained in:
@@ -28,8 +28,8 @@ public class BulletAnimationRunner implements AnimationRunner {
|
||||
private Integer repeat = 1;
|
||||
private float scale = 1.0f;
|
||||
private int delay = 0;
|
||||
private float animationSpeed = 0.05f;
|
||||
private float speed = 0.05f;
|
||||
private float animationSpeed = 3f;
|
||||
private float speed = 3f;
|
||||
private float rotation = 0f;
|
||||
private Direction direction;
|
||||
private Path<Animation> path;
|
||||
|
||||
@@ -29,7 +29,7 @@ public class RandomAnimationsRunner implements AnimationRunner {
|
||||
private float delay = 0f;
|
||||
private RealDistribution delayDistribution;
|
||||
|
||||
private float animationSpeed = 0.05f;
|
||||
private float animationSpeed = 3f;
|
||||
private RealDistribution animationSpeedDistribution;
|
||||
|
||||
private float rotation = 0f;
|
||||
|
||||
@@ -13,8 +13,8 @@ public class SimpleAnimationRunner implements AnimationRunner {
|
||||
private Integer repeat = 1;
|
||||
private float scale = 1.0f;
|
||||
private int delay = 0;
|
||||
private float animationSpeed = 0.05f;
|
||||
private float speed = 0.05f;
|
||||
private float animationSpeed = 3f;
|
||||
private float speed = 3f;
|
||||
private float rotation = 0f;
|
||||
private Path<Animation> path;
|
||||
private Integer repeatPath;
|
||||
|
||||
Reference in New Issue
Block a user