Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion com/zetcode/Board.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class Board extends JPanel {

private final int BOARD_WIDTH = 10;
private final int BOARD_HEIGHT = 22;
private final int PERIOD_INTERVAL = 300;
private final int PERIOD_INTERVAL = 600;

private Timer timer;
private boolean isFallingFinished = false;
Expand Down
2 changes: 0 additions & 2 deletions com/zetcode/Shape.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ public void setRandomShape() {
}

public int minX() {

int m = coords[0][0];

for (int i=0; i < 4; i++) {

m = Math.min(m, coords[i][0]);
Expand Down
3 changes: 1 addition & 2 deletions com/zetcode/Tetris.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,12 @@ private void initUI() {
board.start();

setTitle("Tetris");
setSize(200, 400);
setSize(400, 800);
setDefaultCloseOperation(EXIT_ON_CLOSE);
setLocationRelativeTo(null);
}

JLabel getStatusBar() {

return statusbar;
}

Expand Down