Browse Source

refactoring:[SnakeGame Class]: hoeheP1 ausgelagert

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

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

@ -103,7 +103,7 @@ public class SnakeGame extends JFrame {
cP.setLayout(null); cP.setLayout(null);
panel1 = new JPanel(); panel1 = new JPanel();
panel1.setBounds(xCords1, yCords1, 100, 100);
panel1.setBounds(xCords1, yCords1, hoeheP1, 100);
panel1.setVisible(true); panel1.setVisible(true);
panel1.setBackground(Color.BLACK); panel1.setBackground(Color.BLACK);

Loading…
Cancel
Save