Field - game background as a constant
This commit is contained in:
parent
584d33ae07
commit
7b416c205e
@ -74,6 +74,11 @@ public class Constants {
|
||||
*/
|
||||
public static final Double BALL_SPEED = 1.20;
|
||||
|
||||
/**
|
||||
* The background color for the field
|
||||
*/
|
||||
public static final Color COLOR_GAME_BACKGROUND = new Color(33, 97, 138);
|
||||
|
||||
/**
|
||||
* The default component color
|
||||
*/
|
||||
|
@ -42,7 +42,7 @@ public class Field extends JPanel {
|
||||
super();
|
||||
|
||||
this.view = view;
|
||||
this.background = new Color(177, 92, 107);
|
||||
this.background = Constants.COLOR_GAME_BACKGROUND;
|
||||
|
||||
setFocusable(true);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user