|
|
@ -38,6 +38,8 @@ public class SnakeGame extends JFrame { |
|
|
|
private JPanel cP; |
|
|
|
public JPanel panel1; |
|
|
|
public JPanel panel2; |
|
|
|
public JPanel panel3; |
|
|
|
public JPanel panel4; |
|
|
|
|
|
|
|
public int breite = 1200; |
|
|
|
public int hoehe = 600; |
|
|
@ -79,6 +81,20 @@ public class SnakeGame extends JFrame { |
|
|
|
panel2.setBackground(Color.BLACK); |
|
|
|
|
|
|
|
cP.add(panel2); |
|
|
|
|
|
|
|
panel3 = new JPanel(); |
|
|
|
panel3.setBounds(500, 0, 100, 100); |
|
|
|
panel3.setVisible(true); |
|
|
|
panel3.setBackground(Color.BLACK); |
|
|
|
|
|
|
|
cP.add(panel3); |
|
|
|
|
|
|
|
panel4 = new JPanel(); |
|
|
|
panel4.setBounds(600, 0, 100, 100); |
|
|
|
panel4.setVisible(true); |
|
|
|
panel4.setBackground(Color.BLACK); |
|
|
|
|
|
|
|
cP.add(panel4); |
|
|
|
} |
|
|
|
} |
|
|
|
|