Decrease chance of glue powerup dropping from 50% to 8%

Increase default ball speed to 350px/sec
Change paddle speed control to time-based, 375px/sec
This commit is contained in:
2018-11-12 09:54:07 +04:00
parent 3e0d4657f2
commit 1f9c2e6db0
3 changed files with 9 additions and 9 deletions

View File

@ -36,7 +36,7 @@ public class BrickBuster extends ApplicationAdapter {
int x = 15 + (col * (Brick.BLOCK_WIDTH + 10));
int y = 15 + Brick.BLOCK_HEIGHT + (row * (Brick.BLOCK_HEIGHT + 10));
Class<? extends PowerUp> powerUpType = null;
if (MathUtils.randomBoolean(0.5f)) {
if (MathUtils.randomBoolean(0.08f)) {
powerUpType = GluePowerUp.class;
}
bricks.add(new Brick(this, powerUpType, x, HEIGHT - y));