Preferences - to avoid "magic numbers" within other code all unchanging variables should be stored here!
More...
|
|
static final int | REFRESH_RATE = 2 |
| |
|
static final int | SPAM_ADD_RATE = 25 |
| |
|
static final int | SLEEP_TIME = 30 |
| |
|
static final int | NUM_CELLS_WIDE = 50 |
| |
|
static final int | NUM_CELLS_TALL = 30 |
| |
|
static final int | CELL_SIZE = 10 |
| |
| static final int | GAMEBOARDHEIGHT |
| |
|
static final Color | COLOR_BACKGROUND = Color.ORANGE |
| |
|
static final Color | COLOR_WALL = Color.BLUE |
| |
|
static final Color | COLOR_SPAM = Color.ORANGE |
| |
|
static final Color | COLOR_OPEN = Color.WHITE |
| |
|
static final Color | COLOR_HEAD = Color.BLACK |
| |
|
static final Color | COLOR_BODY = Color.GREEN |
| |
|
static final int | TITLE_X = 100 |
| |
|
static final int | TITLE_Y = 40 |
| |
|
static final Font | TITLE_FONT = new Font("Helvetica", Font.PLAIN, 30) |
| |
|
static final Color | TITLE_COLOR = Color.BLUE |
| |
|
static final String | TITLE = "Spampede" |
| |
|
static final int | GAME_OVER_X = 150 |
| |
|
static final int | GAME_OVER_Y = 200 |
| |
|
static final Font | GAME_OVER_FONT = new Font("Helvetica", Font.PLAIN, 60) |
| |
|
static final Color | GAME_OVER_COLOR = Color.BLUE |
| |
|
static final String | GAME_OVER_TEXT = "Game Over" |
| |
|
static final int | COUNT_X = 100 |
| |
|
static final int | COUNT_Y = 400 |
| |
|
static final int | LIVES = 3 |
| |
|
static final int | LIVES_X = 100 |
| |
|
static final int | LIVES_Y = 430 |
| |
|
|
static final int | SPACE_FOR_BUTTONS = 190 |
| |
Preferences - to avoid "magic numbers" within other code all unchanging variables should be stored here!
- Author
- CS60 instructors
| static final int com.gradescope.spampede.Preferences.GAMEBOARDHEIGHT |
|
static |
Initial value:= NUM_CELLS_TALL * CELL_SIZE
+ SPACE_FOR_BUTTONS
The documentation for this class was generated from the following file:
- spampede/Preferences.java