Added speed boost after a certain amount of bricks remain
Reset board after all bricks are destroyed
This commit is contained in:
@ -60,6 +60,10 @@ public class BrickBuster extends ApplicationAdapter {
|
||||
}
|
||||
ball.update(dt);
|
||||
paddle.update(dt);
|
||||
if (getBricks().isEmpty()) {
|
||||
create();
|
||||
playing = false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user