Only reset ball speed to default when launching normally
This commit is contained in:
parent
ac27cc5e90
commit
a736229c18
@ -101,8 +101,8 @@ public class Ball extends Entity {
|
||||
} else {
|
||||
float angle = MathUtils.random(MathUtils.PI/2) + MathUtils.PI/4;
|
||||
direction = new Vector2(MathUtils.cos(angle), MathUtils.sin(angle));
|
||||
speed = DEFAULT_SPEED;
|
||||
}
|
||||
speed = DEFAULT_SPEED;
|
||||
isStuck = false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user