|
|
@ -96,7 +96,7 @@ public class SnakeGame extends JFrame { |
|
|
|
cP.setLayout(null); |
|
|
|
|
|
|
|
panel1 = new JPanel(); |
|
|
|
panel1.setBounds(300, 0, 100, 100); |
|
|
|
panel1.setBounds(xCords1, 0, 100, 100); |
|
|
|
panel1.setVisible(true); |
|
|
|
panel1.setBackground(Color.BLACK); |
|
|
|
|
|
|
@ -138,7 +138,7 @@ public class SnakeGame extends JFrame { |
|
|
|
cP.add(panel6); |
|
|
|
|
|
|
|
panel7 = new JPanel(); |
|
|
|
panel7.setBounds(300, 100, 100, 100); |
|
|
|
panel7.setBounds(xCords1, 100, 100, 100); |
|
|
|
panel7.setVisible(true); |
|
|
|
panel7.setBackground(Color.BLACK); |
|
|
|
|
|
|
@ -180,7 +180,7 @@ public class SnakeGame extends JFrame { |
|
|
|
cP.add(panel12); |
|
|
|
|
|
|
|
panel13 = new JPanel(); |
|
|
|
panel13.setBounds(300, 200, 100, 100); |
|
|
|
panel13.setBounds(xCords1, 200, 100, 100); |
|
|
|
panel13.setVisible(true); |
|
|
|
panel13.setBackground(Color.BLACK); |
|
|
|
|
|
|
@ -250,7 +250,7 @@ public class SnakeGame extends JFrame { |
|
|
|
cP.add(panel12); |
|
|
|
|
|
|
|
panel13 = new JPanel(); |
|
|
|
panel13.setBounds(300, 200, 100, 100); |
|
|
|
panel13.setBounds(xCords1, 200, 100, 100); |
|
|
|
panel13.setVisible(true); |
|
|
|
panel13.setBackground(Color.BLACK); |
|
|
|
|
|
|
@ -292,7 +292,7 @@ public class SnakeGame extends JFrame { |
|
|
|
cP.add(panel18); |
|
|
|
|
|
|
|
panel19 = new JPanel(); |
|
|
|
panel19.setBounds(300, 300, 100, 100); |
|
|
|
panel19.setBounds(xCords1, 300, 100, 100); |
|
|
|
panel19.setVisible(true); |
|
|
|
panel19.setBackground(Color.BLACK); |
|
|
|
|
|
|
@ -334,7 +334,7 @@ public class SnakeGame extends JFrame { |
|
|
|
cP.add(panel24); |
|
|
|
|
|
|
|
panel25 = new JPanel(); |
|
|
|
panel25.setBounds(300, 400, 100, 100); |
|
|
|
panel25.setBounds(xCords1, 400, 100, 100); |
|
|
|
panel25.setVisible(true); |
|
|
|
panel25.setBackground(Color.BLACK); |
|
|
|
|
|
|
@ -376,7 +376,7 @@ public class SnakeGame extends JFrame { |
|
|
|
cP.add(panel30); |
|
|
|
|
|
|
|
panel31 = new JPanel(); |
|
|
|
panel31.setBounds(300, 500, 100, 100); |
|
|
|
panel31.setBounds(xCords1, 500, 100, 100); |
|
|
|
panel31.setVisible(true); |
|
|
|
panel31.setBackground(Color.BLACK); |
|
|
|
|
|
|
|