1
0
Fork 0

Field - game background as a constant

This commit is contained in:
rxbn_ 2019-12-13 01:30:05 +01:00
parent 584d33ae07
commit 7b416c205e
2 changed files with 6 additions and 1 deletions

View File

@ -74,6 +74,11 @@ public class Constants {
*/ */
public static final Double BALL_SPEED = 1.20; 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 * The default component color
*/ */

View File

@ -42,7 +42,7 @@ public class Field extends JPanel {
super(); super();
this.view = view; this.view = view;
this.background = new Color(177, 92, 107); this.background = Constants.COLOR_GAME_BACKGROUND;
setFocusable(true); setFocusable(true);