Browse Source

refactoring:[SnakeGame Class]: xCords6 ausgelagert

remotes/origin/SnakeGame
fdai7551 2 years ago
parent
commit
9428c1496d
  1. 12
      JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/SnakeGame.java

12
JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/SnakeGame.java

@ -131,7 +131,7 @@ public class SnakeGame extends JFrame {
cP.add(panel5); cP.add(panel5);
panel6 = new JPanel(); panel6 = new JPanel();
panel6.setBounds(800, 0, 100, 100);
panel6.setBounds(xCords6, 0, 100, 100);
panel6.setVisible(true); panel6.setVisible(true);
panel6.setBackground(Color.BLACK); panel6.setBackground(Color.BLACK);
@ -173,7 +173,7 @@ public class SnakeGame extends JFrame {
cP.add(panel11); cP.add(panel11);
panel12 = new JPanel(); panel12 = new JPanel();
panel12.setBounds(800, 100, 100, 100);
panel12.setBounds(xCords6, 100, 100, 100);
panel12.setVisible(true); panel12.setVisible(true);
panel12.setBackground(Color.BLACK); panel12.setBackground(Color.BLACK);
@ -215,7 +215,7 @@ public class SnakeGame extends JFrame {
cP.add(panel17); cP.add(panel17);
panel18 = new JPanel(); panel18 = new JPanel();
panel18.setBounds(800, 200, 100, 100);
panel18.setBounds(xCords6, 200, 100, 100);
panel18.setVisible(true); panel18.setVisible(true);
panel18.setBackground(Color.BLACK); panel18.setBackground(Color.BLACK);
@ -257,7 +257,7 @@ public class SnakeGame extends JFrame {
cP.add(panel23); cP.add(panel23);
panel24 = new JPanel(); panel24 = new JPanel();
panel24.setBounds(800, 300, 100, 100);
panel24.setBounds(xCords6, 300, 100, 100);
panel24.setVisible(true); panel24.setVisible(true);
panel24.setBackground(Color.BLACK); panel24.setBackground(Color.BLACK);
@ -299,7 +299,7 @@ public class SnakeGame extends JFrame {
cP.add(panel29); cP.add(panel29);
panel30 = new JPanel(); panel30 = new JPanel();
panel30.setBounds(800, 400, 100, 100);
panel30.setBounds(xCords6, 400, 100, 100);
panel30.setVisible(true); panel30.setVisible(true);
panel30.setBackground(Color.BLACK); panel30.setBackground(Color.BLACK);
@ -341,7 +341,7 @@ public class SnakeGame extends JFrame {
cP.add(panel35); cP.add(panel35);
panel36 = new JPanel(); panel36 = new JPanel();
panel36.setBounds(800, 500, 100, 100);
panel36.setBounds(xCords6, 500, 100, 100);
panel36.setVisible(true); panel36.setVisible(true);
panel36.setBackground(Color.BLACK); panel36.setBackground(Color.BLACK);

Loading…
Cancel
Save