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 39156db..b56419e 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 @@ -73,6 +73,7 @@ public class SnakeGame extends JFrame { public int xCords6 = 800; public int yCords1 = 0; public int yCords2 = 100; + public int yCords3 = 200; public static void main(String[] args) { @@ -183,42 +184,42 @@ public class SnakeGame extends JFrame { cP.add(panel12); panel13 = new JPanel(); - panel13.setBounds(xCords1, 200, 100, 100); + panel13.setBounds(xCords1, yCords3, 100, 100); panel13.setVisible(true); panel13.setBackground(Color.BLACK); cP.add(panel13); panel14 = new JPanel(); - panel14.setBounds(xCords2, 200, 100, 100); + panel14.setBounds(xCords2, yCords3, 100, 100); panel14.setVisible(true); panel14.setBackground(Color.WHITE); cP.add(panel14); panel15 = new JPanel(); - panel15.setBounds(xCords3, 200, 100, 100); + panel15.setBounds(xCords3, yCords3, 100, 100); panel15.setVisible(true); panel15.setBackground(Color.BLACK); cP.add(panel15); panel16 = new JPanel(); - panel16.setBounds(xCords4, 200, 100, 100); + panel16.setBounds(xCords4, yCords3, 100, 100); panel16.setVisible(true); panel16.setBackground(Color.BLACK); cP.add(panel16); panel17 = new JPanel(); - panel17.setBounds(xCords5, 200, 100, 100); + panel17.setBounds(xCords5, yCords3, 100, 100); panel17.setVisible(true); panel17.setBackground(Color.BLACK); cP.add(panel17); panel18 = new JPanel(); - panel18.setBounds(xCords6, 200, 100, 100); + panel18.setBounds(xCords6, yCords3, 100, 100); panel18.setVisible(true); panel18.setBackground(Color.BLACK);