Browse Source

update

main
fdai4581 2 years ago
parent
commit
08a29834a7
  1. 14
      src/main/java/MenuPanel.java
  2. BIN
      target/classes/MenuPanel$AL.class
  3. BIN
      target/classes/MenuPanel$GameFrame.class
  4. BIN
      target/classes/MenuPanel.class

14
src/main/java/MenuPanel.java

@ -1,3 +1,4 @@
import BattleShip.BShip;
import PingPong.GamePanel; import PingPong.GamePanel;
@ -36,13 +37,16 @@ public class MenuPanel extends JPanel {
public void keyPressed(KeyEvent e) { public void keyPressed(KeyEvent e) {
if (e.getKeyCode() == KeyEvent.VK_1) { if (e.getKeyCode() == KeyEvent.VK_1) {
new GameFrame();
new PingPong.GamePanel();
} }
}
if (e.getKeyCode() == KeyEvent.VK_2) {
BShip game = new BShip();
game.startGame();
} }
if (e.getKeyCode() == KeyEvent.VK_3) {
new Snake.Game();
private class GameFrame {
}
}
} }
} }

BIN
target/classes/MenuPanel$AL.class

BIN
target/classes/MenuPanel$GameFrame.class

BIN
target/classes/MenuPanel.class

Loading…
Cancel
Save