diff --git a/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/SnakeGame.java b/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/SnakeGame.java index 9656ff6..39156db 100644 --- a/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/SnakeGame.java +++ b/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/SnakeGame.java @@ -72,6 +72,8 @@ public class SnakeGame extends JFrame { public int xCords5 = 700; public int xCords6 = 800; public int yCords1 = 0; + public int yCords2 = 100; + public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { @@ -139,42 +141,42 @@ public class SnakeGame extends JFrame { cP.add(panel6); panel7 = new JPanel(); - panel7.setBounds(xCords1, 100, 100, 100); + panel7.setBounds(xCords1, yCords2, 100, 100); panel7.setVisible(true); panel7.setBackground(Color.BLACK); cP.add(panel7); panel8 = new JPanel(); - panel8.setBounds(xCords2, 100, 100, 100); + panel8.setBounds(xCords2, yCords2, 100, 100); panel8.setVisible(true); panel8.setBackground(Color.BLUE); cP.add(panel8); panel9 = new JPanel(); - panel9.setBounds(xCords3, 100, 100, 100); + panel9.setBounds(xCords3, yCords2, 100, 100); panel9.setVisible(true); panel9.setBackground(Color.BLACK); cP.add(panel9); panel10 = new JPanel(); - panel10.setBounds(xCords4, 100, 100, 100); + panel10.setBounds(xCords4, yCords2, 100, 100); panel10.setVisible(true); panel10.setBackground(Color.BLACK); cP.add(panel10); panel11 = new JPanel(); - panel11.setBounds(xCords5, 100, 100, 100); + panel11.setBounds(xCords5, yCords2, 100, 100); panel11.setVisible(true); panel11.setBackground(Color.BLACK); cP.add(panel11); panel12 = new JPanel(); - panel12.setBounds(xCords6, 100, 100, 100); + panel12.setBounds(xCords6, yCords2, 100, 100); panel12.setVisible(true); panel12.setBackground(Color.BLACK);