public class Game
extends java.lang.Object
Constructor and Description |
---|
Game()
Creates a new Tetris game.
|
Game(int width,
int height)
Creates a new Tetris game.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Component |
getComponent()
Returns a new component that draws the game.
|
void |
quit()
Kills the game running thread and makes necessary clean-up.
|
public Game()
public Game(int width, int height)
width
- the width of the square board (in positions)height
- the height of the square board (in positions)public void quit()
public java.awt.Component getComponent()