public class DeathScreen
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BUTTON_H
The height of the buttons on the screen
|
static int |
BUTTON_W
The width of the buttons on the screen
|
static int |
BUTTON_X
The x position of the buttons on the screen
|
static int |
CONTINUE_OFFSET_X
The y offset for the text in the continue button
|
static int |
CONTINUE_Y
The y position of the continue button
|
static int |
DEATH_BACKGROUND_H
The height of the screen
|
static int |
DEATH_BACKGROUND_W
The width of the screen
|
static int |
DEATH_BACKGROUND_X
The x position for the screen on the JPanel window
|
static int |
DEATH_BACKGROUND_Y
The y position for the screen on the JPanel window
|
static int |
QUIT_OFFSET_X
The y offset for the text in the quit button
|
static int |
QUIT_Y
The y position of the quit button
|
static int |
TEXT_OFFSET_Y
The y offset for the title of the screen
|
| Constructor and Description |
|---|
DeathScreen()
The default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
paint(java.awt.Graphics g)
Draws the UI of the death screen
|
public static final int DEATH_BACKGROUND_X
public static final int DEATH_BACKGROUND_Y
public static final int DEATH_BACKGROUND_W
public static final int DEATH_BACKGROUND_H
public static final int BUTTON_W
public static final int BUTTON_H
public static final int BUTTON_X
public static final int CONTINUE_Y
public static final int QUIT_Y
public static final int TEXT_OFFSET_Y
public static final int CONTINUE_OFFSET_X
public static final int QUIT_OFFSET_X