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..d505047 100644 --- a/src/main/java/MenuPanel.java +++ b/src/main/java/MenuPanel.java @@ -1,2 +1,15 @@ -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); + } + + protected void paintComponent(Graphics g) { + super.paintComponent(g); + draw(g); + } \ No newline at end of file diff --git a/target/classes/Main.class b/target/classes/Main.class deleted file mode 100644 index bc70d74..0000000 Binary files a/target/classes/Main.class and /dev/null differ diff --git a/target/classes/java/build-project.sh b/target/classes/java/build-project.sh new file mode 100644 index 0000000..9a9a4a3 --- /dev/null +++ b/target/classes/java/build-project.sh @@ -0,0 +1 @@ +#!/usr/bin/bash \ No newline at end of file diff --git a/target/classes/main/java/build-project.sh b/target/classes/main/java/build-project.sh new file mode 100644 index 0000000..9a9a4a3 --- /dev/null +++ b/target/classes/main/java/build-project.sh @@ -0,0 +1 @@ +#!/usr/bin/bash \ No newline at end of file