Change rows of blocks from 10 to 7, increase height padding

This commit is contained in:
Matt Low 2018-11-11 21:53:00 +04:00
parent 711a5548ef
commit c5642f7050

View File

@ -30,9 +30,9 @@ public class BrickBuster extends ApplicationAdapter {
paddle = new Paddle(this);
bricks = new ArrayList<Brick>();
for (int col = 0; col < 13; col++) {
for (int row = 0; row < 10; row++) {
for (int row = 0; row < 7; row++) {
int x = 15 + (col * (Brick.BLOCK_WIDTH + 10));
int y = 15 + Brick.BLOCK_HEIGHT + (row * (Brick.BLOCK_HEIGHT + 5));
int y = 15 + Brick.BLOCK_HEIGHT + (row * (Brick.BLOCK_HEIGHT + 10));
bricks.add(new Brick(this, x, HEIGHT - y));
}
}