Only reset ball speed to default when launching normally

This commit is contained in:
BlueNutterfly 2018-11-12 11:08:09 +04:00
parent ac27cc5e90
commit a736229c18

View File

@ -101,8 +101,8 @@ public class Ball extends Entity {
} else { } else {
float angle = MathUtils.random(MathUtils.PI/2) + MathUtils.PI/4; float angle = MathUtils.random(MathUtils.PI/2) + MathUtils.PI/4;
direction = new Vector2(MathUtils.cos(angle), MathUtils.sin(angle)); direction = new Vector2(MathUtils.cos(angle), MathUtils.sin(angle));
speed = DEFAULT_SPEED;
} }
speed = DEFAULT_SPEED;
isStuck = false; isStuck = false;
} }