Fixed ball DEFAULT_SPEED being used when BOOST_SPEED should have been

This commit is contained in:
Matt Low 2018-11-12 21:24:02 +04:00
parent c34610b3e3
commit a199c82fd8

View File

@ -27,7 +27,7 @@ public class Ball extends Entity {
public Ball(BrickBuster brickBuster) {
super(brickBuster,BrickBuster.WIDTH/2, Paddle.PADDLE_Y + Paddle.PADDLE_HEIGHT + RADIUS);
this.speed = getBrickBuster().getBricks().size() > BLOCKS_FOR_BOOST? DEFAULT_SPEED : DEFAULT_SPEED;
this.speed = getBrickBuster().getBricks().size() > BLOCKS_FOR_BOOST? DEFAULT_SPEED : BOOST_SPEED;
}
@Override