-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFinal.java
32 lines (28 loc) · 969 Bytes
/
Final.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//Amy Wang
//Comp Sci III Final project - Tetris Runner
//5/26/15
//Objective: Create Tetris-- a game involving moving Tiles and user interactivity.
import java.awt.*;
import javax.swing.*;
import java.util.*;
import java.awt.event.*;
public class Final
{
public static void main (String[] args)
{
JFrame frame = new JFrame("tetris!");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().setPreferredSize(new Dimension(500, 500));
frame.setResizable(false);
TetrisBoard board = new TetrisBoard(500, 500, 40);
frame.add(board);
frame.pack();
frame.setVisible(true);
}
/* Test plan
* Click the screen in random Locations while program is running
* Press other keys aside from the arrow keys, to see if any effect is generated
* Change the width, height, and Location size of the TetrisBoard
* Change the TIMER_TICK constant in the TetrisBoard class
*/
}