Added longer paddle powerup, fixed issues with sticky paddle bouncing

This commit is contained in:
2018-11-12 11:02:26 +04:00
parent 1f9c2e6db0
commit e8901d2ed4
4 changed files with 56 additions and 16 deletions

View File

@ -39,6 +39,9 @@ public class BrickBuster extends ApplicationAdapter {
if (MathUtils.randomBoolean(0.08f)) {
powerUpType = GluePowerUp.class;
}
else if (MathUtils.randomBoolean(0.25f)) {
powerUpType = LongerPaddlePowerUp.class;
}
bricks.add(new Brick(this, powerUpType, x, HEIGHT - y));
}
}