diff --git a/src/main/java/MenuPanel.java b/src/main/java/MenuPanel.java index 5c0d587..95560f9 100644 --- a/src/main/java/MenuPanel.java +++ b/src/main/java/MenuPanel.java @@ -40,7 +40,7 @@ public class MenuPanel extends JPanel { public void keyPressed(KeyEvent e) { if (e.getKeyCode() == KeyEvent.VK_1) { - new PingPong.GamePanel(); + new PingPong.GameFrame(); } if (e.getKeyCode() == KeyEvent.VK_2) { BShip game = new BShip(); diff --git a/src/main/java/PingPong/GameFrame.java b/src/main/java/PingPong/GameFrame.java index 6f87f8e..f7c6dbd 100644 --- a/src/main/java/PingPong/GameFrame.java +++ b/src/main/java/PingPong/GameFrame.java @@ -5,7 +5,7 @@ import java.awt.*; public class GameFrame extends JFrame { GamePanel panel; - GameFrame(){ + public GameFrame(){ panel = new GamePanel(); this.add(panel); this.setTitle("2D Ping-Pong"); diff --git a/target/classes/MenuPanel$AL.class b/target/classes/MenuPanel$AL.class index 9ca14ab..c4c17e1 100644 Binary files a/target/classes/MenuPanel$AL.class and b/target/classes/MenuPanel$AL.class differ diff --git a/target/classes/PingPong/GameFrame.class b/target/classes/PingPong/GameFrame.class index bf5657e..4de88ca 100644 Binary files a/target/classes/PingPong/GameFrame.class and b/target/classes/PingPong/GameFrame.class differ diff --git a/target/classes/classpath.index b/target/classes/classpath.index deleted file mode 100644 index e5601ba..0000000 Binary files a/target/classes/classpath.index and /dev/null differ diff --git a/target/test-classes/CollisionCheckerTest.class b/target/test-classes/CollisionCheckerTest.class index 15f75ac..1b6f82b 100644 Binary files a/target/test-classes/CollisionCheckerTest.class and b/target/test-classes/CollisionCheckerTest.class differ diff --git a/target/test-classes/classpath.index b/target/test-classes/classpath.index deleted file mode 100644 index c12ec5a..0000000 Binary files a/target/test-classes/classpath.index and /dev/null differ