-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConstants.java
More file actions
23 lines (21 loc) · 1.08 KB
/
Copy pathConstants.java
File metadata and controls
23 lines (21 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package Tetris;
public class Constants{
public static final double BOARD_HEIGHT = 720;
public static final int BOARD_WIDTH = 420;
public static final int LABEL_WIDTH = 130;
public static final int SQUARE_SIZE = 30;
public static final int NUMBER_COLUMNS = 14;
public static final int NUMBER_ROWS = 24;
public static final double PIECE_XOFFSET=150;
public static final double SQUARE_XOFFSET=180;
public static final double PIECE_YOFFSET=60;
public static final double DURATION = 1.5;
public static final int BOARD_YBOUNDARY = 660;
public static final double [][]PIECE1= {{0,0},{30,0},{0,30},{30,30}};
public static final double [][]PIECE2= {{0,0},{30,0},{60,0},{90,0}};
public static final double [][]PIECE3= {{0,0},{0,30},{30,30},{60,30}};
public static final double [][]PIECE4= {{60,0},{0,30},{30,30},{60,30}};
public static final double [][]PIECE5= {{30,0},{60,0},{0,30},{30,30}};
public static final double [][]PIECE6= {{30,0},{0,30},{30,30},{60,30}};
public static final double [][]PIECE7= {{0,0},{30,0},{30,30},{60,30}};
}