|
@ -110,7 +110,7 @@ public class SnakeGame extends JFrame { |
|
|
cP.add(panel2); |
|
|
cP.add(panel2); |
|
|
|
|
|
|
|
|
panel3 = new JPanel(); |
|
|
panel3 = new JPanel(); |
|
|
panel3.setBounds(500, 0, 100, 100); |
|
|
|
|
|
|
|
|
panel3.setBounds(xCords3, 0, 100, 100); |
|
|
panel3.setVisible(true); |
|
|
panel3.setVisible(true); |
|
|
panel3.setBackground(Color.BLACK); |
|
|
panel3.setBackground(Color.BLACK); |
|
|
|
|
|
|
|
@ -152,7 +152,7 @@ public class SnakeGame extends JFrame { |
|
|
cP.add(panel8); |
|
|
cP.add(panel8); |
|
|
|
|
|
|
|
|
panel9 = new JPanel(); |
|
|
panel9 = new JPanel(); |
|
|
panel9.setBounds(500, 100, 100, 100); |
|
|
|
|
|
|
|
|
panel9.setBounds(xCords3, 100, 100, 100); |
|
|
panel9.setVisible(true); |
|
|
panel9.setVisible(true); |
|
|
panel9.setBackground(Color.BLACK); |
|
|
panel9.setBackground(Color.BLACK); |
|
|
|
|
|
|
|
@ -194,7 +194,7 @@ public class SnakeGame extends JFrame { |
|
|
cP.add(panel14); |
|
|
cP.add(panel14); |
|
|
|
|
|
|
|
|
panel15 = new JPanel(); |
|
|
panel15 = new JPanel(); |
|
|
panel15.setBounds(500, 200, 100, 100); |
|
|
|
|
|
|
|
|
panel15.setBounds(xCords3, 200, 100, 100); |
|
|
panel15.setVisible(true); |
|
|
panel15.setVisible(true); |
|
|
panel15.setBackground(Color.BLACK); |
|
|
panel15.setBackground(Color.BLACK); |
|
|
|
|
|
|
|
@ -236,7 +236,7 @@ public class SnakeGame extends JFrame { |
|
|
cP.add(panel20); |
|
|
cP.add(panel20); |
|
|
|
|
|
|
|
|
panel21 = new JPanel(); |
|
|
panel21 = new JPanel(); |
|
|
panel21.setBounds(500, 300, 100, 100); |
|
|
|
|
|
|
|
|
panel21.setBounds(xCords3, 300, 100, 100); |
|
|
panel21.setVisible(true); |
|
|
panel21.setVisible(true); |
|
|
panel21.setBackground(Color.BLACK); |
|
|
panel21.setBackground(Color.BLACK); |
|
|
|
|
|
|
|
@ -278,7 +278,7 @@ public class SnakeGame extends JFrame { |
|
|
cP.add(panel26); |
|
|
cP.add(panel26); |
|
|
|
|
|
|
|
|
panel27 = new JPanel(); |
|
|
panel27 = new JPanel(); |
|
|
panel27.setBounds(500, 400, 100, 100); |
|
|
|
|
|
|
|
|
panel27.setBounds(xCords3, 400, 100, 100); |
|
|
panel27.setVisible(true); |
|
|
panel27.setVisible(true); |
|
|
panel27.setBackground(Color.BLACK); |
|
|
panel27.setBackground(Color.BLACK); |
|
|
|
|
|
|
|
@ -320,7 +320,7 @@ public class SnakeGame extends JFrame { |
|
|
cP.add(panel32); |
|
|
cP.add(panel32); |
|
|
|
|
|
|
|
|
panel33 = new JPanel(); |
|
|
panel33 = new JPanel(); |
|
|
panel33.setBounds(500, 500, 100, 100); |
|
|
|
|
|
|
|
|
panel33.setBounds(xCords3, 500, 100, 100); |
|
|
panel33.setVisible(true); |
|
|
panel33.setVisible(true); |
|
|
panel33.setBackground(Color.BLACK); |
|
|
panel33.setBackground(Color.BLACK); |
|
|
|
|
|
|
|
|