diff --git a/src/main/java/GamePanel.java b/src/main/java/GamePanel.java new file mode 100644 index 0000000..3311fd3 --- /dev/null +++ b/src/main/java/GamePanel.java @@ -0,0 +1,2 @@ +public class GamePanel { +} diff --git a/src/main/java/MenuPanel.java b/src/main/java/MenuPanel.java index 0fa2ec8..15aed4d 100644 --- a/src/main/java/MenuPanel.java +++ b/src/main/java/MenuPanel.java @@ -1,2 +1,12 @@ -public class MenuPanel { +import javax.swing.*; +import java.awt.*; + + +public class MenuPanel extends JPanel { + + MenuPanel() { + this.addKeyListener(new MenuPanel.AL()); + this.setBackground(Color.BLACK); + this.setFocusable(true); + this.setPreferredSize(GamePanel.SCREEN); }