Refactor speed-related methods to support 1/s unit rather than 1/frame

This commit is contained in:
2022-08-23 13:36:55 +02:00
parent ead9c1e669
commit b8400bd23b
6 changed files with 13 additions and 20 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;