From 08a29834a7483d93cf8485cb948c20ebdc73d3eb Mon Sep 17 00:00:00 2001 From: fdai4581 Date: Wed, 8 Feb 2023 22:49:49 +0100 Subject: [PATCH] update --- src/main/java/MenuPanel.java | 16 ++++++++++------ target/classes/MenuPanel$AL.class | Bin 720 -> 858 bytes target/classes/MenuPanel$GameFrame.class | Bin 412 -> 0 bytes target/classes/MenuPanel.class | Bin 1417 -> 1370 bytes 4 files changed, 10 insertions(+), 6 deletions(-) delete mode 100644 target/classes/MenuPanel$GameFrame.class diff --git a/src/main/java/MenuPanel.java b/src/main/java/MenuPanel.java index c685056..f8fdf9c 100644 --- a/src/main/java/MenuPanel.java +++ b/src/main/java/MenuPanel.java @@ -1,3 +1,4 @@ +import BattleShip.BShip; import PingPong.GamePanel; @@ -36,13 +37,16 @@ public class MenuPanel extends JPanel { public void keyPressed(KeyEvent e) { 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 { + } + } } } \ No newline at end of file diff --git a/target/classes/MenuPanel$AL.class b/target/classes/MenuPanel$AL.class index 7046c06524e255d3c96736107b3c3e65fcc906ea..d12278c1935e88e0aacf163075ff29bc1f40893a 100644 GIT binary patch delta 413 zcmZ8byGlbr6r9b|yGG1Iqj{(?zM_d&;aEnU}#;fSHw(nGiT>L_!*LKKQFHU4p8mOr?YsY>vS4dPRBg7F71Zp z*gc5^j46R+h1dbB$g?KlW0hE8uZ~1e&jr@7 zu3Y3EsqqtQ#Sx~WqT#;Ojh2*c(iZ=h2V>&FAK;HN z&Nilad2imEotN49{`vd@aDhV?222N*k1g1Q_N`Rwd!b~~yAmro%@_!F@e=2~Q$jtg z`eP3@xDGrYb@+r}DPF}W5$bt#w^+)k;IZ>q#l
>tkwjsCxBZCI1^iPM{5tmJIH zTFC5CEE0BFVH$~KF0xqbKhx4n5IUQX&5C1!_mHl$NKRuN(5TiN>a_^9naqppG%p;efbk2~8&oC$ diff --git a/target/classes/MenuPanel.class b/target/classes/MenuPanel.class index 2fbc45afbe702077b2cd6608a40517d1f9618d63..6d15d8a3f61976459f9b1f69230f95624137c880 100644 GIT binary patch delta 123 zcmeC=zQx6L>ff$?3=9mm43QhT`j{tgWEPoxkvUY9kAa1OpFsc!#Tf({WEg}Plo^C4 zTeCQEiZQSP#kd$GCbzN7k(FX#XOIT+Wf+tgWEqSYff$?3=9mm3^5zI`j{=*86p@Ngnd)27U%{ASuHj$e_$1G+B(riBpt; zl|hVwi$Q#HBFh|ENd|TXDWDo@1|^^>BL-OpI|exhKL&Y*C